summary refs log tree commit diff stats
path: root/plugins/sysinfo/match.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-21 09:56:09 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-21 09:56:09 +0200
commit3d01c7824821688c9213e5789570cfc647f4cdb9 (patch)
treec3c6adb5b1e1b67994f6d41ef827e5c64cdf91c9 /plugins/sysinfo/match.c
parent62c9375bc9e3d4b9cc8abd5fc1c4cccb621382b5 (diff)
First bunch of fixes to SysInfo-Unix, now it works - barely
Diffstat (limited to 'plugins/sysinfo/match.c')
-rw-r--r--plugins/sysinfo/match.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/sysinfo/match.c b/plugins/sysinfo/match.c
index 64d7a062..3ad44716 100644
--- a/plugins/sysinfo/match.c
+++ b/plugins/sysinfo/match.c
@@ -24,8 +24,6 @@
 #include <unistd.h>
 #include "xsys.h"
 
-extern int percentages;
-
 float percentage(unsigned long long *free, unsigned long long *total)
 {
         unsigned long long result = (*free) * (unsigned long long)1000 / (*total);
@@ -56,7 +54,7 @@ char *pretty_freespace(const char *desc, unsigned long long *free_k, unsigned lo
 		free_space = free_space / 1024;
 		total_space = total_space / 1024;
 	}
-	if (percentages != 0)
+	if (sysinfo_get_percentages () != 0)
 		snprintf(result, bsize, "%s: %.1f%s, %.1f%% free",
 		desc, total_space, bytesize,
 		percentage(free_k, total_k));