summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-06-12 20:20:55 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-06-12 20:20:55 +0000
commitf7cac54c235db36f17074bf78de5b30dd9415bcb (patch)
treed5c62f9da849ab0cbf2e0e11e49e18dc20b3d21b /frontends/php/chart.php
parent2d4065252826a4fe62ead51342a1f72516dbd32d (diff)
downloadzabbix-f7cac54c235db36f17074bf78de5b30dd9415bcb.tar.gz
zabbix-f7cac54c235db36f17074bf78de5b30dd9415bcb.tar.xz
zabbix-f7cac54c235db36f17074bf78de5b30dd9415bcb.zip
- added support for units (Mb, Kb, Gb, etc) (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@819 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart.php')
-rw-r--r--frontends/php/chart.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/chart.php b/frontends/php/chart.php
index 0752ccb7..030b8ad5 100644
--- a/frontends/php/chart.php
+++ b/frontends/php/chart.php
@@ -233,7 +233,7 @@
for($i=0;$i<=$my_steps;$i++)
{
- ImageString($im, 1, $sizeX+5+$shiftX, $i/$my_steps*$sizeY+$shiftY-4, convert_units($maxY-$i/$my_steps*($maxY-$minY),$item["units"],0) , $darkred);
+ ImageString($im, 1, $sizeX+5+$shiftX, $i/$my_steps*$sizeY+$shiftY-4, convert_units($maxY-$i/$my_steps*($maxY-$minY),$item["units"],$item["multiplier"]) , $darkred);
}
for($j=$stepTime-$correctTime;$j<=($maxX-$minX);$j+=$stepTime)
{