diff --git a/html/includes/graphs/storage/usage.inc.php b/html/includes/graphs/storage/usage.inc.php index cad06ec56..aa71be974 100644 --- a/html/includes/graphs/storage/usage.inc.php +++ b/html/includes/graphs/storage/usage.inc.php @@ -7,6 +7,7 @@ include("includes/graphs/common.inc.php"); $rrd_options .= " -b 1024"; + $iter = "1"; $sql = mysql_query("SELECT * FROM storage where storage_id = '".mres($_GET['id'])."'"); $rrd_options .= " COMMENT:' Size Free % Used\\n'"; @@ -22,7 +23,6 @@ $rrd_options .= " -b 1024"; $rrd_options .= " DEF:$storage[storage_id]free=$rrd:free:AVERAGE"; $rrd_options .= " CDEF:$storage[storage_id]size=$storage[storage_id]used,$storage[storage_id]free,+"; $rrd_options .= " CDEF:$storage[storage_id]perc=$storage[storage_id]used,$storage[storage_id]size,/,100,*"; - $rrd_options .= " LINE1.25:$storage[storage_id]perc#" . $colour . ":'$descr'"; $rrd_options .= " GPRINT:$storage[storage_id]size:LAST:%6.2lf%sB"; $rrd_options .= " GPRINT:$storage[storage_id]free:LAST:%6.2lf%sB"; diff --git a/html/pages/device/health/storage.inc.php b/html/pages/device/health/storage.inc.php index 33c3957b8..9bf06b49a 100644 --- a/html/pages/device/health/storage.inc.php +++ b/html/pages/device/health/storage.inc.php @@ -44,8 +44,7 @@ while($drive = mysql_fetch_array($query)) { ".print_percentage_bar (400, 20, $perc, "$used / $total", "ffffff", $left_background, $perc . "%", "ffffff", $right_background)."