mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
Hold only a const version of the ProcessList in Meters
This commit is contained in:

committed by
cgzones

parent
f757810f48
commit
72103e9613
4
Meter.h
4
Meter.h
@ -74,7 +74,7 @@ struct Meter_ {
|
||||
int param;
|
||||
GraphData* drawData;
|
||||
int h;
|
||||
ProcessList* pl;
|
||||
const ProcessList* pl;
|
||||
char curItems;
|
||||
double* values;
|
||||
double total;
|
||||
@ -98,7 +98,7 @@ typedef enum {
|
||||
|
||||
extern const MeterClass Meter_class;
|
||||
|
||||
Meter* Meter_new(ProcessList* pl, int param, const MeterClass* type);
|
||||
Meter* Meter_new(const ProcessList* pl, int param, const MeterClass* type);
|
||||
|
||||
int Meter_humanUnit(char* buffer, unsigned long int value, int size);
|
||||
|
||||
|
Reference in New Issue
Block a user