From eaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:29 +0200 Subject: Imported Upstream version 1.0 --- Meter.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Meter.h') diff --git a/Meter.h b/Meter.h index 7e6f80c..dc550e4 100644 --- a/Meter.h +++ b/Meter.h @@ -4,12 +4,11 @@ #define HEADER_Meter /* htop - Meter.h -(C) 2004-2010 Hisham H. Muhammad +(C) 2004-2011 Hisham H. Muhammad Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ -#define _GNU_SOURCE #include "RichString.h" #include "Object.h" #include "CRT.h" @@ -26,6 +25,7 @@ in the source distribution for its full text. #include #ifndef USE_FUNKY_MODES +#include #define USE_FUNKY_MODES 1 #endif @@ -71,13 +71,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, -- cgit v1.2.3