X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdf.c;h=cb0ff2ffe2ba5bfcefb046c0502021b27f4411c6;hb=ca299374303452480544ac19e2028b63db362164;hp=61964f3c8bfac13b7d395cfbc80061a91f2fca5f;hpb=0003c4d3c184f0f437499d6073cd023dc7b659c2;p=collectd.git diff --git a/src/df.c b/src/df.c index 61964f3c..cb0ff2ff 100644 --- a/src/df.c +++ b/src/df.c @@ -321,7 +321,7 @@ static int df_read (void) } /* inode handling */ - if (report_inodes) + if (report_inodes && statbuf.f_files != 0 && statbuf.f_ffree != 0) { uint64_t inode_free; uint64_t inode_reserved;