diff options
author | Daniel Lange <DLange@git.local> | 2022-02-04 11:23:04 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2022-02-04 11:23:04 +0100 |
commit | 93c96b12c9cb349b762d38d69568d65cd3e4fbfd (patch) | |
tree | 9cb12bb8f6c16c23cbb19df65c2334449693187d /DiskIOMeter.c | |
parent | ebf0c067a1fdd4b4779b9557552c2278755dcab4 (diff) | |
parent | a6822e98434cf7da6fab033898094976d881ee0f (diff) | |
download | debian_htop-93c96b12c9cb349b762d38d69568d65cd3e4fbfd.tar.gz debian_htop-93c96b12c9cb349b762d38d69568d65cd3e4fbfd.tar.bz2 debian_htop-93c96b12c9cb349b762d38d69568d65cd3e4fbfd.zip |
Update upstream source from tag 'upstream/3.1.2'
Update to upstream version '3.1.2'
with Debian dir 5ce130e9471b77941bbd217b5ea8b7b3419a91c6
Diffstat (limited to 'DiskIOMeter.c')
-rw-r--r-- | DiskIOMeter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/DiskIOMeter.c b/DiskIOMeter.c index c5f1476..11fb791 100644 --- a/DiskIOMeter.c +++ b/DiskIOMeter.c @@ -81,6 +81,12 @@ static void DiskIOMeter_updateValues(Meter* this) { cached_msTimeSpend_total = data.totalMsTimeSpend; } + if (passedTimeInMs > 30000) { + // Triggers for the first initialization and + // when there was a long time we did not collect updates + hasData = false; + } + this->values[0] = cached_utilisation_diff; this->total = MAXIMUM(this->values[0], 100.0); /* fix total after (initial) spike */ |