From f6eec6d86aa2b168236bb41ce36af8a335323eb6 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Sat, 21 May 2005 08:58:59 +0000 Subject: fix uptime calculation on 64bit platforms bump PORTREVISION Approved by: maintainer --- .../files/patch-panel-plugin:uptime.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sysutils/xfce4-systemload-plugin/files/patch-panel-plugin:uptime.c') diff --git a/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin:uptime.c b/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin:uptime.c index 539fdf6db3e9..8022de7f2a85 100644 --- a/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin:uptime.c +++ b/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin:uptime.c @@ -1,5 +1,5 @@ ---- panel-plugin/uptime.c.orig Fri Nov 21 16:21:22 2003 -+++ panel-plugin/uptime.c Fri Nov 21 16:21:36 2003 +--- panel-plugin/uptime.c.orig Thu Nov 13 20:01:50 2003 ++++ panel-plugin/uptime.c Fri May 20 22:31:11 2005 @@ -81,6 +81,7 @@ #include #include @@ -8,3 +8,12 @@ #include #include #include +@@ -94,7 +95,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) -- cgit v1.2.3