aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/df.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/df.php')
-rw-r--r--plugin/df.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/df.php b/plugin/df.php
index b5c7e73..33dded9 100644
--- a/plugin/df.php
+++ b/plugin/df.php
@@ -29,8 +29,9 @@ $obj->width = $width;
29$obj->heigth = $heigth; 29$obj->heigth = $heigth;
30 30
31$obj->rrd_title = sprintf('Free space (%s)', $obj->args['pinstance']); 31$obj->rrd_title = sprintf('Free space (%s)', $obj->args['pinstance']);
32$obj->rrd_vertical = 'Bytes'; 32$obj->rrd_vertical = ucfirst($CONFIG['datasize']);
33$obj->rrd_format = '%5.1lf%sB'; 33$obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1;
34$obj->rrd_format = '%5.1lf%s';
34 35
35# backwards compatibility 36# backwards compatibility
36if ($CONFIG['version'] < 5) { 37if ($CONFIG['version'] < 5) {