summaryrefslogtreecommitdiff
path: root/src/libvmon/vmon.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-02-06 22:20:31 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-02-06 22:20:31 -0800
commit1f2fa9c5a61ed86cc4699306cdea0dbb9b38a462 (patch)
tree384618767afe22b4d5014e0a0ef1e61e8ad72525 /src/libvmon/vmon.h
parentf908c1e73a81baec74c1a2d312078dabd398bd06 (diff)
charts: ensure first update always samples
vmon steps on this edge case, in vwm it was largely benign since nothing ever happens immediately at vwm startup. But in vmon you do things monitor commands which might immediately send SIGUSR1 to vmon for .png snapshots, producing an empty .png because the first update didn't sample because the time delta hadn't passed. This change just maintains a "primed" charts flag to ensure the initial charts update always samples. This way if got_sigusr1 is already set on the first iteration, at least the first charts update will have sampled and composited *something*.
Diffstat (limited to 'src/libvmon/vmon.h')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved