mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 04:54:37 +03:00
* Option for counting CPUs from zero
(thanks to Sean Noonan) * Meters update in every screen (no longer halting while on Setup, etc.)
This commit is contained in:
10
Meter.h
10
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,
|
||||
|
Reference in New Issue
Block a user