summaryrefslogtreecommitdiffstats
path: root/Meter.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-03-22 20:37:08 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-03-22 20:37:08 +0000
commita9c0ea375323a3f801636f95a76afd0fd1328c5d (patch)
tree6c8f551197bc53097e4ab2618ca20eb1fe0f0696 /Meter.h
parentb56195663760d76ea61d9ed15121dd4a13fa68cd (diff)
* Option for counting CPUs from zero
(thanks to Sean Noonan) * Meters update in every screen (no longer halting while on Setup, etc.)
Diffstat (limited to 'Meter.h')
-rw-r--r--Meter.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Meter.h b/Meter.h
index 7e6f80cb..147bc62e 100644
--- a/Meter.h
+++ b/Meter.h
@@ -26,6 +26,7 @@ in the source distribution for its full text.
#include <assert.h>
#ifndef USE_FUNKY_MODES
+#include <time.h>
#define USE_FUNKY_MODES 1
#endif
@@ -71,13 +72,20 @@ struct Meter_ {
int mode;
int param;
Meter_Draw draw;
- void* drawBuffer;
+ void* drawData;
int h;
ProcessList* pl;
double* values;
double total;
};
+#ifdef USE_FUNKY_MODES
+typedef struct GraphData_ {
+ time_t time;
+ double values[METER_BUFFER_LEN];
+} GraphData;
+#endif
+
typedef enum {
CUSTOM_METERMODE = 0,
BAR_METERMODE,

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