From 92f8b67ebacf96c4e7bf19873e1e4a21cf949938 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 29 Sep 2024 12:56:43 -0700 Subject: vmon: s/delay/delay_us/ More clarification of delay/timeout units in naming --- src/vmon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vmon.c b/src/vmon.c index 0631084..e6c0f14 100644 --- a/src/vmon.c +++ b/src/vmon.c @@ -843,21 +843,21 @@ int main(int argc, const char * const *argv) } while (!vmon->done) { - int delay; + int delay_us; /* update only actually updates when enough time has passed, and always returns how much time * to sleep before calling update again (-1 for infinity (paused)). * * if 0 is returned, no update was performed/no changes occured. */ - if (vwm_charts_update(vmon->charts, &delay)) { + if (vwm_charts_update(vmon->charts, &delay_us)) { if (!vmon->headless) { vwm_chart_compose(vmon->charts, vmon->chart); vwm_chart_render(vmon->charts, vmon->chart, VCR_PRESENT_OP_SRC, vmon->vcr_dest, -1, -1, -1, -1); } } - if (vcr_backend_poll(vmon->vcr_backend, delay) > 0) + if (vcr_backend_poll(vmon->vcr_backend, delay_us) > 0) vmon_process_event(vmon); if (got_sigint > 2 || got_sigquit > 2) { -- cgit v1.2.3