summaryrefslogtreecommitdiffstats
path: root/pcp/PCPDynamicMeter.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-08-13 15:56:01 +1000
committerNathan Scott <nathans@redhat.com>2021-08-13 15:56:01 +1000
commitf839095e3b29668d080c89f3b32fb6dccff54030 (patch)
tree7ef2d9359dea6e171c882f5b6ec5620eb4555396 /pcp/PCPDynamicMeter.h
parent6974ce8e7982d061f26dbbe7c5ca48d7aa6f4dbc (diff)
parent6f2021f3d95e02fc54e59fdeeb006e34c209b9c3 (diff)
Merge branch 'dynamic-columns' of https://github.com/smalinux/htop into smalinux-dynamic-columns
Diffstat (limited to 'pcp/PCPDynamicMeter.h')
-rw-r--r--pcp/PCPDynamicMeter.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/pcp/PCPDynamicMeter.h b/pcp/PCPDynamicMeter.h
index a7390e61..cfe488e5 100644
--- a/pcp/PCPDynamicMeter.h
+++ b/pcp/PCPDynamicMeter.h
@@ -4,25 +4,26 @@
#include "CRT.h"
#include "DynamicMeter.h"
-typedef struct {
- unsigned int id; /* index into metric array */
+
+typedef struct PCPDynamicMetric_ {
+ size_t id; /* index into metric array */
ColorElements color;
char* name; /* derived metric name */
char* label;
char* suffix;
} PCPDynamicMetric;
-typedef struct {
+typedef struct PCPDynamicMeter_ {
DynamicMeter super;
PCPDynamicMetric* metrics;
- unsigned int totalMetrics;
+ size_t totalMetrics;
} PCPDynamicMeter;
-typedef struct {
+typedef struct PCPDynamicMeters_ {
Hashtable* table;
- unsigned int count; /* count of dynamic meters discovered by scan */
- unsigned int offset; /* start offset into the Platform metric array */
- unsigned int cursor; /* identifier allocator for each new metric used */
+ size_t count; /* count of dynamic meters discovered by scan */
+ size_t offset; /* start offset into the Platform metric array */
+ size_t cursor; /* identifier allocator for each new metric used */
} PCPDynamicMeters;
void PCPDynamicMeters_init(PCPDynamicMeters* meters);

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