fix RRD format for storage RRDS. we need to look at these rrd formats, i think, some might SUCK.

git-svn-id: http://www.observium.org/svn/observer/trunk@953 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-02-25 21:40:50 +00:00
parent 74235000be
commit 2ef0c85ffd
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ while($drive = mysql_fetch_array($query)) {
if(is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
$total = $drive['storage_size'] * $drive['storage_units'];
$used = $drive['storage_used'] * $drive['storage_units'];
$free = $total - $drive['storage_used'] * $drive['storage_units'];
$total = $drive['storage_size'];
$used = $drive['storage_used'];
$free = $drive['storage_free'];
$perc = round($drive['storage_perc'], 0);
$used = formatStorage($used);
$total = formatStorage($total);