projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/libcollectdclient/client.c: Fix "Dead assignment" warning.
[collectd.git]
/
src
/
df.c
diff --git
a/src/df.c
b/src/df.c
index
4936cc0
..
3d5a402
100644
(file)
--- 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));
}
df_submit_one (disk_name, "df_complex", "used",
(gauge_t) (blk_used * blocksize));
}
-
+
if (values_percentage)
{
if (statbuf.f_blocks > 0)
if (values_percentage)
{
if (statbuf.f_blocks > 0)
@@
-318,7
+318,7
@@
static int df_read (void)
}
else return (-1);
}
}
else return (-1);
}
-
+
/* inode handling */
if (report_inodes)
{
/* 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;
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);
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);