mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix buggy values on billing transfer graph
git-svn-id: http://www.observium.org/svn/observer/trunk@2748 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -69,9 +69,9 @@
|
|||||||
$datefrom = strftime("%e %b %Y", strtotime($data['bill_datefrom']));
|
$datefrom = strftime("%e %b %Y", strtotime($data['bill_datefrom']));
|
||||||
$dateto = strftime("%e %b %Y", strtotime($data['bill_dateto']));
|
$dateto = strftime("%e %b %Y", strtotime($data['bill_dateto']));
|
||||||
$datelabel = $datefrom."\n".$dateto;
|
$datelabel = $datefrom."\n".$dateto;
|
||||||
$traf['in'] = $data['traf_in'];
|
$traf['in'] = $data['traf_in'] * 1000 * 1000;
|
||||||
$traf['out'] = $data['traf_out'];
|
$traf['out'] = $data['traf_out'] * 1000 * 1000;
|
||||||
$traf['total'] = $data['traf_total'];
|
$traf['total'] = $data['traf_total'] * 1000 * 1000;
|
||||||
|
|
||||||
if ($data['bill_type'] == "Quota") {
|
if ($data['bill_type'] == "Quota") {
|
||||||
$traf['allowed']= $data['bill_allowed'];
|
$traf['allowed']= $data['bill_allowed'];
|
||||||
@@ -101,6 +101,7 @@
|
|||||||
array_push($ticklabels, "");
|
array_push($ticklabels, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$yaxistitle = "Gigabytes";
|
||||||
$graph_name = "Historical bandwidth over the last 12 billing periods";
|
$graph_name = "Historical bandwidth over the last 12 billing periods";
|
||||||
} else {
|
} else {
|
||||||
$data = array();
|
$data = array();
|
||||||
|
Reference in New Issue
Block a user