df: Set negative free space values to zero.
authorToni Ylenius <toniylenius@gmail.com>
Fri, 6 Jan 2012 16:13:56 +0000 (18:13 +0200)
committerFlorian Forster <octo@collectd.org>
Sat, 21 Jan 2012 11:02:59 +0000 (12:02 +0100)
commitca65f66c3cdbbb8af941d3624b85757355f38ad8
treedd2ea8d7da382c099fee955644c36f5b9c98a001
parentbf160b5fd74ac8553512a5d05682093faafd34f9
df: Set negative free space values to zero.

Some file systems (eg. UFS) may report negative free spave values.
Previously this caused underflow, but now it is prevented by setting
negative values to zero.

Change-Id: I821adb8a6d7a40dcbd6c65ab3541fbcd714f8aba

Conflicts:

src/df.c
src/df.c