summaryrefslogtreecommitdiffstats
path: root/Meter.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-23 20:56:19 +0100
committerBenBE <BenBE@geshi.org>2020-12-26 13:32:29 +0100
commit2c06566405e8708c6c4813e79c74bb64ea61661c (patch)
treef25713f5ab32b5562a756476c2dd3bb1e9d9510e /Meter.h
parentd609c04fe4fa38c35465a152d7dccdf8f64e7a0d (diff)
LoadMeter: dynamically adjust color and total of bar
Change the color and total based on the actual 1min load value: < 1 : green and total of 1.0 < cpu-count : yellow and total of cpu-count else : red and total of 2*cpu-count Closes: #32
Diffstat (limited to 'Meter.h')
-rw-r--r--Meter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Meter.h b/Meter.h
index cb054057..2a78fd10 100644
--- a/Meter.h
+++ b/Meter.h
@@ -100,6 +100,7 @@ struct Meter_ {
int h;
const ProcessList* pl;
uint8_t curItems;
+ const int* curAttributes;
double* values;
double total;
void* meterData;

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