From 357901e6f2226fd4173c1152310ecf2808a1caa1 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Thu, 11 Jun 2009 01:28:11 -0600 Subject: [PATCH] Apply fs stat changes to fs_free_perc also (thanks Cesare). --- src/conky.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conky.c b/src/conky.c index 2357659c..8482bda1 100644 --- a/src/conky.c +++ b/src/conky.c @@ -4350,7 +4350,7 @@ static void generate_text_internal(char *p, int p_max_size, int val = 0; if (obj->data.fs->size) { - val = obj->data.fs->free * 100 / obj->data.fs->size; + val = obj->data.fs->avail * 100 / obj->data.fs->size; } percent_print(p, p_max_size, val);