diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-03-22 20:37:08 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-03-22 20:37:08 +0000 |
commit | a9c0ea375323a3f801636f95a76afd0fd1328c5d (patch) | |
tree | 6c8f551197bc53097e4ab2618ca20eb1fe0f0696 /Meter.h | |
parent | b56195663760d76ea61d9ed15121dd4a13fa68cd (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.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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, |