mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
cleanups and fixes, thanks to cppcheck and gcc -Wextra
This commit is contained in:
@ -22,7 +22,7 @@ static void UptimeMeter_setValues(Meter* this, char* buffer, int len) {
|
||||
double uptime = 0;
|
||||
FILE* fd = fopen(PROCDIR "/uptime", "r");
|
||||
if (fd) {
|
||||
fscanf(fd, "%lf", &uptime);
|
||||
fscanf(fd, "%64lf", &uptime);
|
||||
fclose(fd);
|
||||
}
|
||||
int totalseconds = (int) ceil(uptime);
|
||||
|
Reference in New Issue
Block a user