aboutsummaryrefslogtreecommitdiffstats
path: root/Meter.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:29 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:29 +0200
commiteaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95 (patch)
tree833f3fae6e3604a439f909c245a6e35f574997d7 /Meter.h
parent283707c5e5bc436b78ea23bf5500cb6b16a01148 (diff)
downloaddebian_htop-eaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95.tar.gz
debian_htop-eaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95.tar.bz2
debian_htop-eaf11cc12a1aa4b050a8a1e7ea3770d3d9c81e95.zip
Imported Upstream version 1.0upstream/1.0
Diffstat (limited to 'Meter.h')
-rw-r--r--Meter.h13
1 files changed, 10 insertions, 3 deletions
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 <assert.h>
#ifndef USE_FUNKY_MODES
+#include <time.h>
#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,

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