diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-06-13 04:10:19 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-06-13 04:10:19 +0000 |
commit | 2c4f702b3b36fe0161a6d5e7c8834a06bd663592 (patch) | |
tree | 831f10000f24aecfd5ee3a8c3282c7861ce12f9c /frontends/php/chart3.php | |
parent | f7cac54c235db36f17074bf78de5b30dd9415bcb (diff) | |
download | zabbix-2c4f702b3b36fe0161a6d5e7c8834a06bd663592.tar.gz zabbix-2c4f702b3b36fe0161a6d5e7c8834a06bd663592.tar.xz zabbix-2c4f702b3b36fe0161a6d5e7c8834a06bd663592.zip |
Graphs to support units.
git-svn-id: svn://svn.zabbix.com/trunk@820 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart3.php')
-rw-r--r-- | frontends/php/chart3.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/chart3.php b/frontends/php/chart3.php index 6386aee2..87829349 100644 --- a/frontends/php/chart3.php +++ b/frontends/php/chart3.php @@ -239,9 +239,10 @@ if(isset($nodata)&&($nodata == 0)) { + $item=get_item_by_itemid($HTTP_GET_VARS["itemid"]); for($i=0;$i<=$sizeY;$i+=$sizeY/5) { - ImageString($im, 1, $sizeX+5+$shiftX, $sizeY-$i-4+$shiftYup, $i*($maxY-$minY)/$sizeY+$minY , $darkred); + ImageString($im, 1, $sizeX+5+$shiftX, $sizeY-$i-4+$shiftYup, convert_units($i*($maxY-$minY)/$sizeY+$minY,$item["units"],$item["multiplier"]) , $darkred); } // date("dS of F Y h:i:s A",DBget_field($result,0,0)); |