summaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-02-17 17:38:35 +0100
committerBenny Baumann <BenBE@geshi.org>2021-03-19 23:30:54 +0100
commita11d01568c5e7bc5570fd48fa0703d837c4bcd84 (patch)
tree3e298e81123789ed6ae288e5bd32e91ebfb3ff01 /ProcessList.h
parent53bcc5cbffbdd69e0e08bd33c5e357dd5b753456 (diff)
Use unsigned types for CPU counts and associated variables
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ProcessList.h b/ProcessList.h
index d4fd1f60..bfbe0ab3 100644
--- a/ProcessList.h
+++ b/ProcessList.h
@@ -59,10 +59,10 @@ typedef struct ProcessList_ {
bool topologyOk;
#endif
- int totalTasks;
- int runningTasks;
- int userlandThreads;
- int kernelThreads;
+ unsigned int totalTasks;
+ unsigned int runningTasks;
+ unsigned int userlandThreads;
+ unsigned int kernelThreads;
memory_t totalMem;
memory_t usedMem;
@@ -75,7 +75,7 @@ typedef struct ProcessList_ {
memory_t usedSwap;
memory_t cachedSwap;
- int cpuCount;
+ unsigned int cpuCount;
time_t scanTs;
} ProcessList;

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