summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/services.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-12 09:42:46 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-12 09:42:46 +0000
commitc0529a72a421c43e903376c9c2661cf9b2e221d8 (patch)
treec1597b558cb9a46961d204e9461d5c2a6eea59e6 /frontends/php/include/services.inc.php
parent1e32b65c56449dba7140c470a2e18024a05063d4 (diff)
downloadzabbix-c0529a72a421c43e903376c9c2661cf9b2e221d8.tar.gz
zabbix-c0529a72a421c43e903376c9c2661cf9b2e221d8.tar.xz
zabbix-c0529a72a421c43e903376c9c2661cf9b2e221d8.zip
- [ZBX-208] html output parsing (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5164 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/services.inc.php')
-rw-r--r--frontends/php/include/services.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/include/services.inc.php b/frontends/php/include/services.inc.php
index 75f5c373..8f4e484a 100644
--- a/frontends/php/include/services.inc.php
+++ b/frontends/php/include/services.inc.php
@@ -479,7 +479,7 @@
if(!isset($data[$period_end])) $data[$period_end] = array();
/*
- print('From: '.date('l d M Y H:i',$period_start).' To: '.date('l d M Y H:i',$period_end).BR);
+ print('From: '.date('l d M Y H:i',$period_start).' To: '.date('l d M Y H:i',$period_end).SBR);
$ut = 0;
$dt = 0;
foreach($data as $ts => $val)
@@ -492,7 +492,7 @@ $dt = 0;
if(isset($val['dt_e'])) {print(' dt_e-'.$val['dt_e']); $dt-=$val['dt_e'];}
if(isset($val['alarm'])) {print(' alarm is '.$val['alarm']); }
print(' ut = '.$ut.' dt = '.$dt);
- print(BR);
+ print(SBR);
}
*/
/* calculate times */
@@ -508,7 +508,7 @@ $dt = 0;
$prev_alarm = $data[$period_start]['alarm'];
$prev_time = $period_start;
-//print_r($data[$period_start]); print(BR);
+//print_r($data[$period_start]); print(SBR);
if(isset($data[$period_start]['ut_s'])) $ut_cnt += $data[$period_start]['ut_s'];
if(isset($data[$period_start]['ut_e'])) $ut_cnt -= $data[$period_start]['ut_e'];
@@ -540,7 +540,7 @@ $dt = 0;
{
$sla_time[$period_type]['ok_time'] += $ts - $prev_time;
}
-//print_r($val); print(BR);
+//print_r($val); print(SBR);
if(isset($val['ut_s'])) $ut_cnt += $val['ut_s'];
if(isset($val['ut_e'])) $ut_cnt -= $val['ut_e'];
if(isset($val['dt_s'])) $dt_cnt += $val['dt_s'];