summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26cad19)
raw | patch | inline | side by side (parent: 26cad19)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 17 Jul 2013 10:05:49 +0000 (12:05 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 17 Jul 2013 10:05:49 +0000 (12:05 +0200) |
src/df.c | patch | blob | history |
diff --git a/src/df.c b/src/df.c
index 4936cc0c3eda2a7ddfe9cc17a6e6c9cfb6ddfe1b..3d5a402c7949b8741b7568b78d987c1fe033dc6a 100644 (file)
--- a/src/df.c
+++ b/src/df.c
df_submit_one (disk_name, "df_complex", "used",
(gauge_t) (blk_used * blocksize));
}
-
+
if (values_percentage)
{
if (statbuf.f_blocks > 0)
}
else return (-1);
}
-
+
/* inode handling */
if (report_inodes)
{
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);