mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Apply fs stat changes to fs_free_perc also (thanks Cesare).
This commit is contained in:
parent
8e55089537
commit
357901e6f2
@ -4350,7 +4350,7 @@ static void generate_text_internal(char *p, int p_max_size,
|
|||||||
int val = 0;
|
int val = 0;
|
||||||
|
|
||||||
if (obj->data.fs->size) {
|
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);
|
percent_print(p, p_max_size, val);
|
||||||
|
Loading…
Reference in New Issue
Block a user