Code

df plugin: when checking / do it just once
[collectd.git] / src / df.c
index 22264d30228f5f8d8f5946beec819f20844cfd7f..dc7be1ebd8238a3f6913819c1d406d3f4130ae6c 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