mirror of https://github.com/xzeldon/htop.git
Avoid bad function cast warning
linux/Platform.c:142:17: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast] return (int) floor(uptime); ^~~~~~~~~~~~~
This commit is contained in:
parent
4a1f3fca96
commit
cd1ba1422b
|
@ -139,7 +139,7 @@ int Platform_getUptime() {
|
||||||
fclose(fd);
|
fclose(fd);
|
||||||
if (n <= 0) return 0;
|
if (n <= 0) return 0;
|
||||||
}
|
}
|
||||||
return (int) floor(uptime);
|
return floor(uptime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
|
void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
|
||||||
|
|
Loading…
Reference in New Issue