diff options
author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-11-13 14:57:12 +0000 |
---|---|---|
committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-11-13 14:57:12 +0000 |
commit | fd82a68386e23ae44036def7010a6a7b87720463 (patch) | |
tree | e1aa550c3ac4e4404e9e83b73d710331234ef6ef /frontends/php/tr_events.php | |
parent | 5ee20e11121b75b4d24fcb00b345456efaff5c08 (diff) | |
download | zabbix-fd82a68386e23ae44036def7010a6a7b87720463.tar.gz zabbix-fd82a68386e23ae44036def7010a6a7b87720463.tar.xz zabbix-fd82a68386e23ae44036def7010a6a7b87720463.zip |
- [DEV-45] merged rev. 5008:5009 of branches/1.4.j/ (Artem) [added support of trigger "type B" to events screen]
git-svn-id: svn://svn.zabbix.com/trunk@5011 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_events.php')
-rw-r--r-- | frontends/php/tr_events.php | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/frontends/php/tr_events.php b/frontends/php/tr_events.php index 5dc1040d..48cb5f9d 100644 --- a/frontends/php/tr_events.php +++ b/frontends/php/tr_events.php @@ -98,7 +98,14 @@ include_once "include/page_header.php"; $rows = array(); $count = 0; while($row=DBfetch($result)){ - if(!empty($rows) && $rows[$count]['value'] != $row['value']){ + if(!empty($rows) && ($rows[$count]['value'] != $row['value'])){ + $count++; + } + else if(!empty($rows) && + ($rows[$count]['value'] == $row['value']) && + ($trigger_data['type'] == TRIGGER_MULT_EVENT_ENABLED) && + ($row['value'] == TRIGGER_VALUE_TRUE) + ){ $count++; } $rows[$count] = $row; @@ -142,17 +149,17 @@ include_once "include/page_header.php"; if($leng>60*60*24) { - $leng= round(($leng/(60*60*24))*10)/10; + $leng= round(($leng/86400)*10)/10; $leng="$leng days"; } elseif ($leng>60*60) { - $leng= round(($leng/(60*60))*10)/10; + $leng= round(($leng/3600)*10)/10; $leng="$leng hours"; } elseif ($leng>60) { - $leng= round(($leng/(60))*10)/10; + $leng= round(($leng/60)*10)/10; $leng="$leng mins"; } else @@ -160,19 +167,19 @@ include_once "include/page_header.php"; $leng="$leng secs"; } - if($sum>60*60*24) + if($sum>86400) { - $sum= round(($sum/(60*60*24))*10)/10; + $sum= round(($sum/86400)*10)/10; $sum="$sum days"; } elseif ($sum>60*60) { - $sum= round(($sum/(60*60))*10)/10; + $sum= round(($sum/3600)*10)/10; $sum="$sum hours"; } elseif ($sum>60) { - $sum= round(($sum/(60))*10)/10; + $sum= round(($sum/60)*10)/10; $sum="$sum mins"; } else |