1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-26 07:00:31 -04:00
ports/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__uptime.c
Max Brazhnikov b9e00780b5 Fix reported memory size on systems with more than 3.5GB real memory.
PR:		ports/155382
Submitted by:	Zhihao Yuan <lichray at gmail.com>
Approved by:	maintainer timeout (several months)
2011-07-03 12:04:37 +00:00

11 lines
388 B
C

--- ./panel-plugin/uptime.c.orig 2010-12-09 19:04:10.000000000 +0300
+++ ./panel-plugin/uptime.c 2011-07-03 15:39:52.391879944 +0400
@@ -93,7 +93,7 @@
int mib[2] = {CTL_KERN, KERN_BOOTTIME};
struct timeval boottime;
time_t now;
- int size = sizeof(boottime);
+ size_t size = sizeof(boottime);
gulong uptime;
if((sysctl(mib, 2, &boottime, &size, NULL, 0) != -1)