summaryrefslogtreecommitdiffstats
path: root/frontends/php/srv_status.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-31 11:17:54 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-31 11:17:54 +0000
commitc606a0bad1b26b76bf7a061c329afbc49ff1cd97 (patch)
tree70ea31e3c754d9a91d531befd4ebd974c72abf63 /frontends/php/srv_status.php
parented68e5fe0c92a2a620df0116f28c6ef7ceea8df4 (diff)
downloadzabbix-c606a0bad1b26b76bf7a061c329afbc49ff1cd97.tar.gz
zabbix-c606a0bad1b26b76bf7a061c329afbc49ff1cd97.tar.xz
zabbix-c606a0bad1b26b76bf7a061c329afbc49ff1cd97.zip
- improvements to services calculation algorithms (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5564 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/srv_status.php')
-rw-r--r--frontends/php/srv_status.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/php/srv_status.php b/frontends/php/srv_status.php
index af29c328..7f86035d 100644
--- a/frontends/php/srv_status.php
+++ b/frontends/php/srv_status.php
@@ -138,7 +138,8 @@ include_once "include/page_header.php";
if($row["status"]==0 || (isset($service) && (bccomp($service["serviceid"] , $row["serviceid"]) == 0))){
$row['reason']="-";
- } else {
+ }
+ else {
$row['reason'] = new CList(null,"itservices");
$result2=DBselect("select s.triggerid,s.serviceid from services s, triggers t ".
" where s.status>0 and s.triggerid is not NULL and t.triggerid=s.triggerid ".
@@ -162,8 +163,9 @@ include_once "include/page_header.php";
$period_start = $now-7*24*3600;
$period_end = $now;
- $stat = calculate_service_availability($row["serviceid"],$period_start,$period_end);
+ $stat = calculate_service_availability($row["serviceid"],$period_start,$period_end);
+
if($row["goodsla"] > $stat["ok"]){
$sla_style='red';
} else {