diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2024-09-29 12:56:43 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2024-09-29 12:56:43 -0700 |
commit | 92f8b67ebacf96c4e7bf19873e1e4a21cf949938 (patch) | |
tree | cf091dd9d1f98dbfe124b51b86fb623a315693d7 /src | |
parent | 9b23315e169c390b4a2fbab290ae8196e3929cd8 (diff) |
vmon: s/delay/delay_us/
More clarification of delay/timeout units in naming
Diffstat (limited to 'src')
-rw-r--r-- | src/vmon.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |