From 862c618c45d75d6f736f6b129943a5063e60c9eb Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 6 Oct 2024 23:28:31 -0700 Subject: 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(). --- src/charts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/charts.c') 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; } -- cgit v1.2.3