X-Git-Url: https://git.tokkee.org/?p=collectd.git;a=blobdiff_plain;f=src%2Fdf.c;h=3d5a402c7949b8741b7568b78d987c1fe033dc6a;hp=4936cc0c3eda2a7ddfe9cc17a6e6c9cfb6ddfe1b;hb=29a58124b9c561019df84f07d334a161a6cd6ab0;hpb=26cad19ab2412d87fa01f75ab498054482a072d2 diff --git a/src/df.c b/src/df.c index 4936cc0c..3d5a402c 100644 --- a/src/df.c +++ b/src/df.c @@ -304,7 +304,7 @@ static int df_read (void) df_submit_one (disk_name, "df_complex", "used", (gauge_t) (blk_used * blocksize)); } - + if (values_percentage) { if (statbuf.f_blocks > 0) @@ -318,7 +318,7 @@ static int df_read (void) } else return (-1); } - + /* inode handling */ if (report_inodes) { @@ -331,7 +331,7 @@ static int df_read (void) statbuf.f_ffree = statbuf.f_favail; if (statbuf.f_files < statbuf.f_ffree) statbuf.f_files = statbuf.f_ffree; - + inode_free = (uint64_t) statbuf.f_favail; inode_reserved = (uint64_t) (statbuf.f_ffree - statbuf.f_favail); inode_used = (uint64_t) (statbuf.f_files - statbuf.f_ffree);