diff options
author | Benjamin Berg <bberg@redhat.com> | 2022-01-27 13:06:29 +0100 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2022-01-27 14:48:51 +0100 |
commit | d113f627277b1838dc43bcd17e6b33c9caa3999d (patch) | |
tree | 77d0968c83bb5703ab5ebac38f0f8413b99c82fb /COPYING | |
parent | 94af9d6f3d9cf87001718d60826eee1975a38fd6 (diff) |
history: Delay saving history even on low power
Otherwise we flush out the data much more often than needed. With this
change, we'll also wait up to 5 seconds even on lower power. Loosing 5s
of data shouldn't be too bad, and it may prevent additional disk writes.
But, more importantly, we need to deferre writing the data to a later
main loop iteration. If we did not do this, then we have an
write-amplification scenario where the history is written at least 4
times instead of once.
Closes: #150
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions