diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-08-05 08:38:33 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-08-05 08:38:33 +0000 |
commit | cbbc6165657ee31b43b8e1090cce51140ec7f345 (patch) | |
tree | b1495ed0b4936c50c53c0fa000938138d0f83cf0 /frontends/php/chart3.php | |
parent | 3aaebd72e03febacca675489203a0c2e23861656 (diff) | |
download | zabbix-cbbc6165657ee31b43b8e1090cce51140ec7f345.tar.gz zabbix-cbbc6165657ee31b43b8e1090cce51140ec7f345.tar.xz zabbix-cbbc6165657ee31b43b8e1090cce51140ec7f345.zip |
Additions to the manual.
git-svn-id: svn://svn.zabbix.com/trunk@447 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart3.php')
-rw-r--r-- | frontends/php/chart3.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/frontends/php/chart3.php b/frontends/php/chart3.php index c77d32fa..bc06d6cd 100644 --- a/frontends/php/chart3.php +++ b/frontends/php/chart3.php @@ -268,6 +268,17 @@ else // ImageLine($im,$shiftX,$shiftYup+$sizeY/2,$sizeX+$shiftX,$shiftYup+$sizeY/2,$green); } + $i=intval( 900*(($now+3*3600)%(24*3600))/(24*3600)); + $x1=$sizeX*($i-$minX)/($maxX-$minX); + $y1=$sizeY*($avg[$i]-$minY)/($maxY-$minY); + $x2=$x1; + $y2=0; + $y1=$sizeY-$y1; + $y2=$sizeY-$y2; + +// ImageDashedLine($im,$x1+$shiftX,$y1+$shiftYup,$x2+$shiftX,$y2+$shiftYup,$black); + ImageDashedLine($im,$x1+$shiftX,$shiftYup,$x2+$shiftX,$sizeY+$shiftYup,$black); + if($nodata == 0) { for($i=0;$i<=$sizeY;$i+=$sizeY/5) |