mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user