summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-02-04 16:27:26 +0100
committerHisham Muhammad <hisham@gobolinux.org>2018-02-26 20:13:09 -0300
commit0e38be9ee7f1a30ddd584af40c6e93c7829ed19e (patch)
treeb2f3b650dec15dab1a8721cb2436736d85506ebe
parent8e6c1e1bacb24f69120dc71aa8f1841a4c6f44be (diff)
Darwin: expose LAST_PROCESSFIELD like the other platforms
-rw-r--r--darwin/Platform.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c
index 1dce8b67..ef7c3653 100644
--- a/darwin/Platform.c
+++ b/darwin/Platform.c
@@ -25,6 +25,11 @@ in the source distribution for its full text.
#include "CPUMeter.h"
#include "BatteryMeter.h"
#include "DarwinProcess.h"
+
+typedef enum DarwinProcessFields {
+ LAST_PROCESSFIELD = 100,
+} DarwinProcessField;
+
}*/
#ifndef CLAMP
@@ -97,7 +102,7 @@ ProcessFieldData Process_fields[] = {
[TIME] = { .name = "TIME", .title = " TIME+ ", .description = "Total time the process has spent in user and system time", .flags = 0, },
[NLWP] = { .name = "NLWP", .title = "NLWP ", .description = "Number of threads in the process", .flags = 0, },
[TGID] = { .name = "TGID", .title = " TGID ", .description = "Thread group ID (i.e. process ID)", .flags = 0, },
- [100] = { .name = "*** report bug! ***", .title = NULL, .description = NULL, .flags = 0, },
+ [LAST_PROCESSFIELD] = { .name = "*** report bug! ***", .title = NULL, .description = NULL, .flags = 0, },
};
MeterClass* Platform_meterTypes[] = {

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