summaryrefslogtreecommitdiff
path: root/src/charts.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2024-10-06 23:28:31 -0700
committerVito Caputo <vcaputo@pengaru.com>2024-10-08 01:31:31 -0700
commit862c618c45d75d6f736f6b129943a5063e60c9eb (patch)
treea49bc561645948545da3f03270e8339b462567ef /src/charts.c
parent644f0d1e8ee044f05ea530b58479820152f4e545 (diff)
vcr: switch to ppoll() and return microseconds delay
This is mostly preparotory for having more precision in a computed delay, but is also arguably just finishing what was started when adding the _us suffixes throughout. A future commit should also rework signal stuff to only unblock signals in ppoll().
Diffstat (limited to 'src/charts.c')
-rw-r--r--src/charts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charts.c b/src/charts.c
index 24ffe7d..fd66932 100644
--- a/src/charts.c
+++ b/src/charts.c
@@ -1362,7 +1362,7 @@ int vwm_charts_update(vwm_charts_t *charts, int *desired_delay_us)
}
/* TODO: make some effort to compute how long to sleep, but this is perfectly fine for now. */
- *desired_delay_us = charts->sampling_interval_secs == INFINITY ? -1 : charts->sampling_interval_secs * 300.0;
+ *desired_delay_us = charts->sampling_interval_secs == INFINITY ? -1 : charts->sampling_interval_secs * 300000.0;
return ret;
}
© All Rights Reserved