summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-10 18:46:26 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-10 18:46:26 +0000
commitae9a12313b86b166614f6128ccc727f65888b74b (patch)
tree8d59fa6cff4b7e720e3f673b41ee9adc4257d4c2 /frontends/php/include/classes.inc.php
parente777ab102a63f31475ec2b1061c3c7484c9b4b55 (diff)
Minor improvements.
git-svn-id: svn://svn.zabbix.com/trunk@891 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes.inc.php')
-rw-r--r--frontends/php/include/classes.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/frontends/php/include/classes.inc.php b/frontends/php/include/classes.inc.php
index 4e27760a..6f521c41 100644
--- a/frontends/php/include/classes.inc.php
+++ b/frontends/php/include/classes.inc.php
@@ -341,7 +341,21 @@
$maxY=@iif($maxY<max($this->max[$i]),max($this->max[$i]),$maxY);
}
}
+
$minY=0;
+// Calculation of maximum Y value
+ for($i=-10;$i<11;$i++)
+ {
+ $m=pow(10,$i);
+ if($m>$maxY)
+ {
+ if($m/2>$maxY)
+ {
+ $maxY=$m/2;
+ }
+ break;
+ }
+ }
if(isset($minY)&&isset($maxY)&&($minX!=$maxX)&&($minY!=$maxY))
{