aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2011-07-03 12:04:37 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2011-07-03 12:04:37 +0000
commitb9e00780b58ea0164075b0c21ecdf7b983d8fa3e (patch)
tree1c39b1800c37d1e1a6376c2e268d9a909e8472b2 /sysutils
parent09d2256f04b9a0b36fdb4276ab14e843292b5242 (diff)
downloadports-b9e00780b58ea0164075b0c21ecdf7b983d8fa3e.tar.gz
ports-b9e00780b58ea0164075b0c21ecdf7b983d8fa3e.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/xfce4-systemload-plugin/Makefile2
-rw-r--r--sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__memswap.c13
-rw-r--r--sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__uptime.c11
3 files changed, 25 insertions, 1 deletions
diff --git a/sysutils/xfce4-systemload-plugin/Makefile b/sysutils/xfce4-systemload-plugin/Makefile
index 9c3b4048d41c..24706215cb29 100644
--- a/sysutils/xfce4-systemload-plugin/Makefile
+++ b/sysutils/xfce4-systemload-plugin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= xfce4-systemload-plugin
PORTVERSION= 1.0.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils xfce
MASTER_SITES= ${MASTER_SITE_XFCE}
MASTER_SITE_SUBDIR= src/panel-plugins/${PORTNAME}/${PORTVERSION:R}
diff --git a/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__memswap.c b/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__memswap.c
new file mode 100644
index 000000000000..9535a847d353
--- /dev/null
+++ b/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__memswap.c
@@ -0,0 +1,13 @@
+--- ./panel-plugin/memswap.c.orig 2010-12-09 19:04:10.000000000 +0300
++++ ./panel-plugin/memswap.c 2011-07-03 15:39:52.384882846 +0400
+@@ -228,8 +228,8 @@
+ return -1;
+ }
+
+- *MT = (total_pages*pagesize) >> 10;
+- *MU = ((total_pages-free_pages-inactive_pages) * pagesize) >> 10;
++ *MT = CONVERT(total_pages);
++ *MU = CONVERT(total_pages-free_pages-inactive_pages);
+ *mem = *MU * 100 / *MT;
+
+ if((*swap = swapmode(&swap_avail, &swap_free)) >= 0) {
diff --git a/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__uptime.c b/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__uptime.c
new file mode 100644
index 000000000000..db8def93a577
--- /dev/null
+++ b/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin__uptime.c
@@ -0,0 +1,11 @@
+--- ./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)