diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-02-06 22:20:31 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-02-06 22:20:31 -0800 |
commit | 1f2fa9c5a61ed86cc4699306cdea0dbb9b38a462 (patch) | |
tree | 384618767afe22b4d5014e0a0ef1e61e8ad72525 /patches/linux-sched-implement-adopt-system-call.patch.txt | |
parent | f908c1e73a81baec74c1a2d312078dabd398bd06 (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 'patches/linux-sched-implement-adopt-system-call.patch.txt')
0 files changed, 0 insertions, 0 deletions