aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/epplets
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2013-05-15 07:52:11 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2013-05-15 07:52:11 +0000
commitc419c054d813d2752895464e8e7789d898554125 (patch)
tree35c36b20512f91327afaeb66a7a043d1ebbcc39a /x11-wm/epplets
parent9198dd88e86b16f0b1216fb0808aa533743344c8 (diff)
downloadports-c419c054d813d2752895464e8e7789d898554125.tar.gz
ports-c419c054d813d2752895464e8e7789d898554125.zip
Notes
Diffstat (limited to 'x11-wm/epplets')
-rw-r--r--x11-wm/epplets/files/patch-epplets_E-MemWatch.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/x11-wm/epplets/files/patch-epplets_E-MemWatch.c b/x11-wm/epplets/files/patch-epplets_E-MemWatch.c
index 624b73e394cb..e8cb1adddae9 100644
--- a/x11-wm/epplets/files/patch-epplets_E-MemWatch.c
+++ b/x11-wm/epplets/files/patch-epplets_E-MemWatch.c
@@ -1,5 +1,5 @@
--- epplets/E-MemWatch.c.orig 2012-09-30 11:38:35.000000000 +0200
-+++ epplets/E-MemWatch.c 2013-05-14 18:17:45.000000000 +0200
++++ epplets/E-MemWatch.c 2013-05-15 09:51:28.000000000 +0200
@@ -1,5 +1,6 @@
/*
* Copyright (C) 1999-2000, Michael Jennings
@@ -80,7 +80,7 @@
if (kernel_2_6)
{
-@@ -174,8 +194,23 @@
+@@ -174,8 +194,22 @@
}
fclose(fp);
@@ -102,11 +102,10 @@
+ }
+#endif
+ swap_val = 100. * used / total;
-+ printf ("swap_val: %d\n", swap_val);
/*printf ("Swap: %lu %lu %d%%\n", total, used, swap_val); */
-@@ -273,6 +308,7 @@
+@@ -273,6 +307,7 @@
{
int prio;
@@ -114,7 +113,7 @@
/* check for Kernel 2.6 */
FILE *fp;
-@@ -295,6 +331,7 @@
+@@ -295,6 +330,7 @@
fclose(fp);
/* end check for Kernel 2.6 */