X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdf.c;h=cb0ff2ffe2ba5bfcefb046c0502021b27f4411c6;hb=5293f334d4bbdc746b42d3dfebd5ef1680b58d05;hp=61964f3c8bfac13b7d395cfbc80061a91f2fca5f;hpb=1b15b227585497f72ab0e42d96d79c0313323bd4;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;