summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart_sla.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-30 16:16:16 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-30 16:16:16 +0000
commitbbe21b2a9020fd89606f8b79e36855c5b96a0b53 (patch)
tree82f3f5d13044a98c104a6c81f6bdad08ac3beb85 /frontends/php/chart_sla.php
parent31b8cb2a2ba468200b9be469aa2126bdfb6e8029 (diff)
downloadzabbix-bbe21b2a9020fd89606f8b79e36855c5b96a0b53.tar.gz
zabbix-bbe21b2a9020fd89606f8b79e36855c5b96a0b53.tar.xz
zabbix-bbe21b2a9020fd89606f8b79e36855c5b96a0b53.zip
Fix for black border.
git-svn-id: svn://svn.zabbix.com/trunk@1079 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart_sla.php')
-rw-r--r--frontends/php/chart_sla.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/chart_sla.php b/frontends/php/chart_sla.php
index 08fee4e2..39fc700f 100644
--- a/frontends/php/chart_sla.php
+++ b/frontends/php/chart_sla.php
@@ -50,7 +50,6 @@
$white=ImageColorAllocate($im,255,255,255);
ImageFilledRectangle($im,0,0,$sizeX,$sizeY,ImageColorAllocate($im,120,200,120));
- ImageRectangle($im,0,0,$sizeX-1,$sizeY-1,$black);
$now=time(NULL);
$period_start=$now-7*24*3600;
@@ -74,6 +73,8 @@
ImageFilledRectangle($im,$sizeX-$sizeX*$p/20,1,$sizeX-2,$sizeY-2,ImageColorAllocate($im,200,120,120));
ImageLine($im,$sizeX*$g/20,1,$sizeX*$g/20,$sizeY-1,$yellow);
+ ImageRectangle($im,0,0,$sizeX-1,$sizeY-1,$black);
+
$s=sprintf("%2.2f%%",$ok);
ImageString($im, 2,1,1, $s , $white);
$s=sprintf("%2.2f%%", $problem);