File tree 18 files changed +28
-23
lines changed
18 files changed +28
-23
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ in the source distribution for its full text.
38
38
#include "DateMeter.h"
39
39
#include "DateTimeMeter.h"
40
40
#include "FileDescriptorMeter.h"
41
+ #include "FlexMeter.h"
41
42
#include "HostnameMeter.h"
42
43
#include "LoadAverageMeter.h"
43
44
#include "Macros.h"
@@ -112,7 +113,7 @@ const SignalItem Platform_signals[] = {
112
113
113
114
const unsigned int Platform_numberOfSignals = ARRAYSIZE (Platform_signals );
114
115
115
- const MeterClass * const Platform_meterTypes [] = {
116
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
116
117
& CPUMeter_class ,
117
118
& ClockMeter_class ,
118
119
& DateMeter_class ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ extern const SignalItem Platform_signals[];
34
34
35
35
extern const unsigned int Platform_numberOfSignals ;
36
36
37
- extern const MeterClass * const Platform_meterTypes [];
37
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
38
38
39
39
bool Platform_init (void );
40
40
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ in the source distribution for its full text.
27
27
#include "DateMeter.h"
28
28
#include "DateTimeMeter.h"
29
29
#include "FileDescriptorMeter.h"
30
+ #include "FlexMeter.h"
30
31
#include "HostnameMeter.h"
31
32
#include "LoadAverageMeter.h"
32
33
#include "Macros.h"
@@ -43,7 +44,6 @@ in the source distribution for its full text.
43
44
#include "dragonflybsd/DragonFlyBSDProcessTable.h"
44
45
#include "generic/fdstat_sysctl.h"
45
46
46
-
47
47
const ScreenDefaults Platform_defaultScreens [] = {
48
48
{
49
49
.name = "Main" ,
@@ -93,7 +93,7 @@ const SignalItem Platform_signals[] = {
93
93
94
94
const unsigned int Platform_numberOfSignals = ARRAYSIZE (Platform_signals );
95
95
96
- const MeterClass * const Platform_meterTypes [] = {
96
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
97
97
& CPUMeter_class ,
98
98
& ClockMeter_class ,
99
99
& DateMeter_class ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ extern const SignalItem Platform_signals[];
37
37
38
38
extern const unsigned int Platform_numberOfSignals ;
39
39
40
- extern const MeterClass * const Platform_meterTypes [];
40
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
41
41
42
42
bool Platform_init (void );
43
43
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ in the source distribution for its full text.
32
32
#include "DateTimeMeter.h"
33
33
#include "DiskIOMeter.h"
34
34
#include "FileDescriptorMeter.h"
35
+ #include "FlexMeter.h"
35
36
#include "HostnameMeter.h"
36
37
#include "LoadAverageMeter.h"
37
38
#include "Machine.h"
@@ -100,7 +101,7 @@ const SignalItem Platform_signals[] = {
100
101
101
102
const unsigned int Platform_numberOfSignals = ARRAYSIZE (Platform_signals );
102
103
103
- const MeterClass * const Platform_meterTypes [] = {
104
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
104
105
& CPUMeter_class ,
105
106
& ClockMeter_class ,
106
107
& DateMeter_class ,
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ extern const SignalItem Platform_signals[];
33
33
34
34
extern const unsigned int Platform_numberOfSignals ;
35
35
36
- extern const MeterClass * const Platform_meterTypes [];
36
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
37
37
38
38
bool Platform_init (void );
39
39
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ in the source distribution for its full text.
31
31
#include "DateTimeMeter.h"
32
32
#include "DiskIOMeter.h"
33
33
#include "FileDescriptorMeter.h"
34
+ #include "FlexMeter.h"
34
35
#include "HostnameMeter.h"
35
36
#include "HugePageMeter.h"
36
37
#include "LoadAverageMeter.h"
@@ -209,7 +210,7 @@ void Platform_setBindings(Htop_Action* keys) {
209
210
keys [KEY_F (20 )] = Platform_actionHigherAutogroupPriority ; // Shift-F8
210
211
}
211
212
212
- const MeterClass * const Platform_meterTypes [] = {
213
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
213
214
& CPUMeter_class ,
214
215
& ClockMeter_class ,
215
216
& DateMeter_class ,
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ extern const SignalItem Platform_signals[];
47
47
48
48
extern const unsigned int Platform_numberOfSignals ;
49
49
50
- extern const MeterClass * const Platform_meterTypes [];
50
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
51
+
51
52
52
53
bool Platform_init (void );
53
54
void Platform_done (void );
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ in the source distribution for its full text.
41
41
#include "DateMeter.h"
42
42
#include "DateTimeMeter.h"
43
43
#include "FileDescriptorMeter.h"
44
+ #include "FlexMeter.h"
44
45
#include "HostnameMeter.h"
45
46
#include "LoadAverageMeter.h"
46
47
#include "Macros.h"
@@ -152,7 +153,7 @@ const SignalItem Platform_signals[] = {
152
153
153
154
const unsigned int Platform_numberOfSignals = ARRAYSIZE (Platform_signals );
154
155
155
- const MeterClass * const Platform_meterTypes [] = {
156
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
156
157
& CPUMeter_class ,
157
158
& ClockMeter_class ,
158
159
& DateMeter_class ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ extern const SignalItem Platform_signals[];
43
43
44
44
extern const unsigned int Platform_numberOfSignals ;
45
45
46
- extern const MeterClass * const Platform_meterTypes [];
46
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
47
47
48
48
bool Platform_init (void );
49
49
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ in the source distribution for its full text.
31
31
#include "DateMeter.h"
32
32
#include "DateTimeMeter.h"
33
33
#include "FileDescriptorMeter.h"
34
+ #include "FlexMeter.h"
34
35
#include "HostnameMeter.h"
35
36
#include "LoadAverageMeter.h"
36
37
#include "Macros.h"
@@ -47,7 +48,6 @@ in the source distribution for its full text.
47
48
#include "openbsd/OpenBSDMachine.h"
48
49
#include "openbsd/OpenBSDProcess.h"
49
50
50
-
51
51
const ScreenDefaults Platform_defaultScreens [] = {
52
52
{
53
53
.name = "Main" ,
@@ -100,7 +100,7 @@ const SignalItem Platform_signals[] = {
100
100
101
101
const unsigned int Platform_numberOfSignals = ARRAYSIZE (Platform_signals );
102
102
103
- const MeterClass * const Platform_meterTypes [] = {
103
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
104
104
& CPUMeter_class ,
105
105
& ClockMeter_class ,
106
106
& DateMeter_class ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ extern const SignalItem Platform_signals[];
35
35
36
36
extern const unsigned int Platform_numberOfSignals ;
37
37
38
- extern const MeterClass * const Platform_meterTypes [];
38
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
39
39
40
40
bool Platform_init (void );
41
41
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ in the source distribution for its full text.
27
27
#include "DynamicMeter.h"
28
28
#include "DynamicScreen.h"
29
29
#include "FileDescriptorMeter.h"
30
+ #include "FlexMeter.h"
30
31
#include "HostnameMeter.h"
31
32
#include "LoadAverageMeter.h"
32
33
#include "Macros.h"
@@ -55,7 +56,6 @@ in the source distribution for its full text.
55
56
#include "zfs/ZfsArcStats.h"
56
57
#include "zfs/ZfsCompressedArcMeter.h"
57
58
58
-
59
59
Platform * pcp ;
60
60
61
61
const ScreenDefaults Platform_defaultScreens [] = {
@@ -79,7 +79,7 @@ const SignalItem Platform_signals[] = {
79
79
80
80
const unsigned int Platform_numberOfSignals = ARRAYSIZE (Platform_signals );
81
81
82
- const MeterClass * const Platform_meterTypes [] = {
82
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
83
83
& CPUMeter_class ,
84
84
& DynamicMeter_class ,
85
85
& ClockMeter_class ,
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ extern const SignalItem Platform_signals[];
68
68
69
69
extern const unsigned int Platform_numberOfSignals ;
70
70
71
- extern const MeterClass * const Platform_meterTypes [];
71
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
72
72
73
73
bool Platform_init (void );
74
74
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ in the source distribution for its full text.
33
33
#include "ClockMeter.h"
34
34
#include "DateMeter.h"
35
35
#include "DateTimeMeter.h"
36
+ #include "FlexMeter.h"
36
37
#include "HostnameMeter.h"
37
38
#include "SysArchMeter.h"
38
39
#include "UptimeMeter.h"
@@ -43,7 +44,6 @@ in the source distribution for its full text.
43
44
#include "zfs/ZfsArcMeter.h"
44
45
#include "zfs/ZfsCompressedArcMeter.h"
45
46
46
-
47
47
const ScreenDefaults Platform_defaultScreens [] = {
48
48
{
49
49
.name = "Default" ,
@@ -101,7 +101,7 @@ const SignalItem Platform_signals[] = {
101
101
102
102
const unsigned int Platform_numberOfSignals = ARRAYSIZE (Platform_signals );
103
103
104
- const MeterClass * const Platform_meterTypes [] = {
104
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
105
105
& CPUMeter_class ,
106
106
& ClockMeter_class ,
107
107
& DateMeter_class ,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ extern const SignalItem Platform_signals[];
58
58
59
59
extern const unsigned int Platform_numberOfSignals ;
60
60
61
- extern const MeterClass * const Platform_meterTypes [];
61
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
62
62
63
63
bool Platform_init (void );
64
64
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ in the source distribution for its full text.
17
17
#include "DateMeter.h"
18
18
#include "DateTimeMeter.h"
19
19
#include "FileDescriptorMeter.h"
20
+ #include "FlexMeter.h"
20
21
#include "HostnameMeter.h"
21
22
#include "LoadAverageMeter.h"
22
23
#include "Macros.h"
@@ -27,7 +28,6 @@ in the source distribution for its full text.
27
28
#include "TasksMeter.h"
28
29
#include "UptimeMeter.h"
29
30
30
-
31
31
const ScreenDefaults Platform_defaultScreens [] = {
32
32
{
33
33
.name = "Main" ,
@@ -44,7 +44,7 @@ const SignalItem Platform_signals[] = {
44
44
45
45
const unsigned int Platform_numberOfSignals = ARRAYSIZE (Platform_signals );
46
46
47
- const MeterClass * const Platform_meterTypes [] = {
47
+ const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ] = {
48
48
& CPUMeter_class ,
49
49
& ClockMeter_class ,
50
50
& DateMeter_class ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ extern const SignalItem Platform_signals[];
31
31
32
32
extern const unsigned int Platform_numberOfSignals ;
33
33
34
- extern const MeterClass * const Platform_meterTypes [];
34
+ extern const MeterClass * Platform_meterTypes [MAX_PLATFORM_METERS ];
35
35
36
36
bool Platform_init (void );
37
37
You can’t perform that action at this time.
0 commit comments