Code

df plugin: Rename the percent metrics.
authorFlorian Forster <octo@collectd.org>
Sat, 1 Jun 2013 07:19:07 +0000 (09:19 +0200)
committerFlorian Forster <octo@collectd.org>
Sat, 1 Jun 2013 07:19:07 +0000 (09:19 +0200)
commita6ea8a31f4f27655640f7a517d2b157fa8fc62d7
tree211bf9dadf8d74accd1b4c439a0d2a50e87c9253
parent2cef48ae374f267e46c9c4219c97919e04f5b0a7
df plugin: Rename the percent metrics.

* Change type to "percent".
* Use "<disk>-bytes" and "<disk>-inodes" as plugin instance. This way we're
  able to use "percent" for both.
* Remove one level of indentation.
* Make casting more explicit (e.g. don't divide a float by a size_t).
src/df.c
src/types.db