summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Levermann <simon-github@slevermann.de>2019-10-23 09:06:03 +0200
committerPatrick <tingping@tingping.se>2019-11-13 21:37:21 -0800
commitad5be08a0703659e1b90ec4a5c6ff58a42660bae (patch)
treefd80a5b892edea7ed6af427e2c6680f32f297c31 /plugins
parent308838da32de4b2a91788666fab85eab1545ae09 (diff)
Ignore some non-interesting filesystem types
Generally, how much space we have in squashfs, or tmpfs shouldn't
interest us. This becomes more relevant in distros like Ubuntu, where
snaps are a thing, and each snap mounts their own FS in a squashfs that
is always full, thus falsifying the output of sysinfo.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sysinfo/shared/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sysinfo/shared/df.c b/plugins/sysinfo/shared/df.c
index ce0760a6..bb2c2131 100644
--- a/plugins/sysinfo/shared/df.c
+++ b/plugins/sysinfo/shared/df.c
@@ -26,7 +26,7 @@ int xs_parse_df(gint64 *out_total, gint64 *out_free)
 	FILE *pipe;
 	char buffer[bsize];
 	
-	pipe = popen("df -k -l -P", "r");
+	pipe = popen("df -k -l -P --exclude-type=squashfs --exclude-type=devtmpfs --exclude-type=tmpfs", "r");
 	if(pipe==NULL)
 		return 1;