diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2005-05-21 08:58:59 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2005-05-21 08:58:59 +0000 |
commit | f6eec6d86aa2b168236bb41ce36af8a335323eb6 (patch) | |
tree | 3bcd24ab733b1500969bea677d5c6d771f39db84 | |
parent | 3e00e9fc15fbc893b41bbd53129d1465e22fb552 (diff) | |
download | ports-f6eec6d86aa2b168236bb41ce36af8a335323eb6.tar.gz ports-f6eec6d86aa2b168236bb41ce36af8a335323eb6.zip |
fix uptime calculation on 64bit platforms
bump PORTREVISION
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=135748
-rw-r--r-- | sysutils/xfce4-systemload-plugin/Makefile | 2 | ||||
-rw-r--r-- | sysutils/xfce4-systemload-plugin/files/patch-panel-plugin:uptime.c | 13 |
2 files changed, 12 insertions, 3 deletions
diff --git a/sysutils/xfce4-systemload-plugin/Makefile b/sysutils/xfce4-systemload-plugin/Makefile index e4278ea21018..7579efe81fb0 100644 --- a/sysutils/xfce4-systemload-plugin/Makefile +++ b/sysutils/xfce4-systemload-plugin/Makefile @@ -7,7 +7,7 @@ PORTNAME= xfce4-systemload-plugin PORTVERSION= 0.3.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils xfce MASTER_SITES= http://download.berlios.de/xfce-goodies/ \ http://matt.nerim.net/xfce-goodies/ \ 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 <string.h> #include <sys/param.h> @@ -8,3 +8,12 @@ #include <sys/types.h> #include <sys/vmmeter.h> #include <unistd.h> +@@ -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) |