summaryrefslogtreecommitdiffstats
path: root/Meter.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-12-04 18:08:59 +0100
committerBenBE <BenBE@geshi.org>2021-12-08 19:08:20 +0100
commit63fafb4844dd619793ba1d318e2b06518666dd37 (patch)
tree43b95da47cb0eb61b2accc183d5bfed3fadd13fa /Meter.h
parent3cfdf66d9aecb463026d1227a8ba159edd4e1cbd (diff)
IOMeters: rework initial display
Show a non highlighted string at the start of htop, not the failure text. Also the original fix only handled the text mode, not the bar mode. Improves: 2977414d ("Discard stale information from DiskIO and NetworkIO meters") Related: #860
Diffstat (limited to 'Meter.h')
-rw-r--r--Meter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Meter.h b/Meter.h
index be8207c7..bd7604a0 100644
--- a/Meter.h
+++ b/Meter.h
@@ -134,6 +134,13 @@ typedef enum {
LAST_METERMODE
} MeterModeId;
+typedef enum {
+ RATESTATUS_DATA,
+ RATESTATUS_INIT,
+ RATESTATUS_NODATA,
+ RATESTATUS_STALE
+} MeterRateStatus;
+
extern const MeterClass Meter_class;
Meter* Meter_new(const ProcessList* pl, unsigned int param, const MeterClass* type);

© 2014-2024 Faster IT GmbH | imprint | privacy policy