summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-02 12:35:38 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-02 12:35:38 +0000
commit914ff5a4f37c2bf999ab92baaa06964a2b963972 (patch)
treeb788a59ea4830ba4ce19b869648a333b38f2b08f /frontends/php/include/config.inc.php
parentcfcce2e48100db5d067703120c4aa131f712c991 (diff)
downloadzabbix-914ff5a4f37c2bf999ab92baaa06964a2b963972.tar.gz
zabbix-914ff5a4f37c2bf999ab92baaa06964a2b963972.tar.xz
zabbix-914ff5a4f37c2bf999ab92baaa06964a2b963972.zip
- [DEV-171] added support of notification escalations on frontend side (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5740 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index bae6c3e4..b6716cd7 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -486,26 +486,21 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
if($units=="uptime"){
$ret="";
$days=floor($value/(24*3600));
- if($days>0)
- {
+ if($days>0){
$value=$value-$days*(24*3600);
}
$hours=floor($value/(3600));
- if($hours>0)
- {
+ if($hours>0){
$value=$value-$hours*3600;
}
$min=floor($value/(60));
- if($min>0)
- {
+ if($min>0){
$value=$value-$min*(60);
}
- if($days==0)
- {
+ if($days==0){
$ret = sprintf("%02d:%02d:%02d", $hours, $min, $value);
}
- else
- {
+ else{
$ret = sprintf("%d days, %02d:%02d:%02d", $days, $hours, $min, $value);
}
return $ret;
@@ -756,7 +751,8 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
$msg_count = count($ZBX_MESSAGES);
if($msg_count > $msg_show) $msg_count = $msg_show;
-
+
+ $msg_count = ($msg_count > $msg_show)?$msg_count:$msg_show;
$msg_count = ($msg_count * $msg_font_size * 4) + 2;
$lst_error->AddOption('style','font-size: '.$msg_font_size.'pt; height: '.$msg_count.'px;');