Use unsigned types for CPU counts and associated variables

This commit is contained in:
Christian Göttsche
2021-02-17 17:38:35 +01:00
committed by Benny Baumann
parent 53bcc5cbff
commit a11d01568c
32 changed files with 88 additions and 89 deletions

View File

@ -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;