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
This commit is contained in:
Christian Göttsche
2021-12-04 18:08:59 +01:00
committed by BenBE
parent 3cfdf66d9a
commit 63fafb4844
3 changed files with 71 additions and 23 deletions

View File

@ -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);