mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Use unsigned types for CPU counts and associated variables
This commit is contained in:

committed by
Benny Baumann

parent
53bcc5cbff
commit
a11d01568c
@ -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;
|
||||
|
Reference in New Issue
Block a user