projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
df plugin: when checking / do it just once
[collectd.git]
/
src
/
df.c
diff --git
a/src/df.c
b/src/df.c
index
22264d3
..
dc7be1e
100644
(file)
--- a/
src/df.c
+++ b/
src/df.c
@@
-257,6
+257,8
@@
static int df_read (void)
{
if (strcmp (mnt_ptr->dir, "/") == 0)
{
+ if (strcmp (mnt_ptr->type, "rootfs") == 0)
+ continue;
sstrncpy (disk_name, "root", sizeof (disk_name));
}
else