mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 21:14:35 +03:00
cleanups and fixes, thanks to cppcheck and gcc -Wextra
This commit is contained in:
@ -23,7 +23,7 @@ static inline void LoadAverageMeter_scan(double* one, double* five, double* fift
|
||||
*one = 0; *five = 0; *fifteen = 0;
|
||||
FILE *fd = fopen(PROCDIR "/loadavg", "r");
|
||||
if (fd) {
|
||||
int total = fscanf(fd, "%lf %lf %lf %d/%d %d", one, five, fifteen,
|
||||
int total = fscanf(fd, "%32lf %32lf %32lf %32d/%32d %32d", one, five, fifteen,
|
||||
&activeProcs, &totalProcs, &lastProc);
|
||||
(void) total;
|
||||
assert(total == 6);
|
||||
|
Reference in New Issue
Block a user