diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-08-04 16:53:24 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-08-04 16:53:24 +0000 |
| commit | 2f691b3628c4589fe258def9564d78cd134d3ebb (patch) | |
| tree | 278a676e3e5540977348c86b9d7a96ccc105902d /frontends/php/chart_diff.php | |
| parent | 89d810024288866e72586c1774dec254db9aa884 (diff) | |
| download | zabbix-2f691b3628c4589fe258def9564d78cd134d3ebb.tar.gz zabbix-2f691b3628c4589fe258def9564d78cd134d3ebb.tar.xz zabbix-2f691b3628c4589fe258def9564d78cd134d3ebb.zip | |
- added upgrades/dbpatches/1.0beta4_to_1.0beta5/ with patches (Alexei)
- added support for disktotal[*] (Alexei)
- added support for inodetotal[*] (Alexei)
- added support for *,/,+, and - in trigger expressions (Alexei)
- removed frontends/php/chart4.php (Alexei)
- update item status to UNSUPPORTED in case if SNMP support was not included
into zabbix_suckerd (Alexei)
- added mysql_init() to DBconnect() (Alexei)
- fixed Next100 and Prev100 for case if some hosts are hidden (Alexei)
- added select for latest values (Alexei)
- delete related services if trigger is deleted (Alexei)
- fixed problem with substitution of macros for messages (Alexei)
- eliminated DBis_empty() by replacing to DBnum_rows() (Alexei)
- MAX_STRING_LEN increased to 4096 (Alexei)
- fixed zabbix_log(). Possible coredump if data contains %s, etc (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@445 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart_diff.php')
| -rw-r--r-- | frontends/php/chart_diff.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/frontends/php/chart_diff.php b/frontends/php/chart_diff.php index d261b4ac..6052d4b7 100644 --- a/frontends/php/chart_diff.php +++ b/frontends/php/chart_diff.php @@ -21,7 +21,7 @@ $sizeY=200; $shiftX=10; - $shiftY=13; + $shiftY=17; $nodata=1; @@ -51,15 +51,18 @@ for($i=0;$i<=$sizeY;$i+=$sizeY/5) { - ImageDashedLine($im,$shiftX,$i+$shiftY,$sizeX+$shiftX,$i+$shiftY,$black); + ImageDashedLine($im,$shiftX,$i+$shiftY,$sizeX+$shiftX,$i+$shiftY,$gray); } for($i=0;$i<=$sizeX;$i+=$sizeX/24) { - ImageDashedLine($im,$i+$shiftX,$shiftY,$i+$shiftX,$sizeY+$shiftY,$black); + ImageDashedLine($im,$i+$shiftX,$shiftY,$i+$shiftX,$sizeY+$shiftY,$gray); } $item=get_item_by_itemid($itemid); $host=get_host_by_hostid($item["hostid"]); - ImageString($im, 4,$sizeX/2-50,-1, $host["host"].":".$item["description"]." (diff)" , $darkred); + + $str=$host["host"].":".$item["description"]." (diff)"; + $x=imagesx($im)/2-ImageFontWidth(4)*strlen($str)/2; + ImageString($im, 4,$x,1, $str , $darkred); $from_time = time(NULL)-$period-3600*$from; $to_time = time(NULL)-3600*$from; @@ -158,7 +161,7 @@ ImageString($im, 2,$sizeX/2-50, $sizeY+$shiftY+3, "NO DATA FOUND FOR THIS PERIOD" , $darkred); } - ImageStringUp($im,0,2*$shiftX+$sizeX+40,$sizeY+2*$shiftY, "http://zabbix.sourceforge.net", $gray); + ImageStringUp($im,0,imagesx($im)-10,imagesy($im)-50, "http://zabbix.sourceforge.net", $gray); ImagePng($im); ImageDestroy($im); |
