mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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);
|
||||
if (n <= 0) return 0;
|
||||
}
|
||||
return (int) floor(uptime);
|
||||
return floor(uptime);
|
||||
}
|
||||
|
||||
void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
|
||||
|
Loading…
Reference in New Issue
Block a user