From bb44e69b354ad7c9952e3949096f3edd2184e823 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Thu, 1 Dec 2011 15:10:03 +0000 Subject: [PATCH] fix buggy values on billing transfer graph git-svn-id: http://www.observium.org/svn/observer/trunk@2748 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/bandwidth-graph.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/bandwidth-graph.php b/html/bandwidth-graph.php index c183600cfe..7cab8cec0d 100644 --- a/html/bandwidth-graph.php +++ b/html/bandwidth-graph.php @@ -69,9 +69,9 @@ $datefrom = strftime("%e %b %Y", strtotime($data['bill_datefrom'])); $dateto = strftime("%e %b %Y", strtotime($data['bill_dateto'])); $datelabel = $datefrom."\n".$dateto; - $traf['in'] = $data['traf_in']; - $traf['out'] = $data['traf_out']; - $traf['total'] = $data['traf_total']; + $traf['in'] = $data['traf_in'] * 1000 * 1000; + $traf['out'] = $data['traf_out'] * 1000 * 1000; + $traf['total'] = $data['traf_total'] * 1000 * 1000; if ($data['bill_type'] == "Quota") { $traf['allowed']= $data['bill_allowed']; @@ -101,6 +101,7 @@ array_push($ticklabels, ""); } } + $yaxistitle = "Gigabytes"; $graph_name = "Historical bandwidth over the last 12 billing periods"; } else { $data = array();