summaryrefslogtreecommitdiffstats
path: root/frontends/php/queue.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-31 07:59:34 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-31 07:59:34 +0000
commit4daf306cbcec1cc1eaf44c7b85b62e2e16f0e995 (patch)
treef5cae84bcba8023a6c21db84ffd50cbf16edc7ed /frontends/php/queue.php
parentd819518a7df5456ad4694924457f1c67c755cf27 (diff)
downloadzabbix-4daf306cbcec1cc1eaf44c7b85b62e2e16f0e995.tar.gz
zabbix-4daf306cbcec1cc1eaf44c7b85b62e2e16f0e995.tar.xz
zabbix-4daf306cbcec1cc1eaf44c7b85b62e2e16f0e995.zip
- [DEV-137] implemented Korean language (Artem)
- [DEV-137] updated Japanese language (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5856 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/queue.php')
-rw-r--r--frontends/php/queue.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/frontends/php/queue.php b/frontends/php/queue.php
index 10721bda..6716a7ad 100644
--- a/frontends/php/queue.php
+++ b/frontends/php/queue.php
@@ -77,14 +77,14 @@ include_once "include/page_header.php";
' WHERE i.status='.ITEM_STATUS_ACTIVE.
' AND i.type in ('.implode(',',$item_types).') '.
' AND ((h.status='.HOST_STATUS_MONITORED.' AND h.available != '.HOST_AVAILABLE_FALSE.') '.
- ' or (h.status='.HOST_STATUS_MONITORED.' AND h.available='.HOST_AVAILABLE_FALSE.' AND h.disable_until<='.$now.')) '.
+ ' OR (h.status='.HOST_STATUS_MONITORED.' AND h.available='.HOST_AVAILABLE_FALSE.' AND h.disable_until<='.$now.')) '.
' AND i.hostid=h.hostid '.
' AND i.nextcheck<'.$now.
' AND i.key_ NOT IN ('.zbx_dbstr('status').','.zbx_dbstr('icmpping').','.zbx_dbstr('icmppingsec').','.zbx_dbstr('zabbix[log]').') '.
' AND i.value_type not in ('.ITEM_VALUE_TYPE_LOG.') '.
' AND '.DBcondition('h.hostid',$available_hosts).
' AND '.DBin_node('h.hostid', get_current_nodeid()).
- ' order by i.nextcheck,h.host,i.description,i.key_');
+ ' ORDER BY i.nextcheck,h.host,i.description,i.key_');
$table = new CTableInfo(S_THE_QUEUE_IS_EMPTY);
@@ -100,12 +100,12 @@ include_once "include/page_header.php";
}
while($row=DBfetch($result)){
- if($now-$row["nextcheck"]<=5) $sec_5[$row["type"]]++;
- elseif($now-$row["nextcheck"]<=10) $sec_10[$row["type"]]++;
- elseif($now-$row["nextcheck"]<=30) $sec_30[$row["type"]]++;
- elseif($now-$row["nextcheck"]<=60) $sec_60[$row["type"]]++;
- elseif($now-$row["nextcheck"]<=300) $sec_300[$row["type"]]++;
- else $sec_rest[$row["type"]]++;
+ if($now-$row["nextcheck"]<=5) $sec_5[$row["type"]]++;
+ else if($now-$row["nextcheck"]<=10) $sec_10[$row["type"]]++;
+ else if($now-$row["nextcheck"]<=30) $sec_30[$row["type"]]++;
+ else if($now-$row["nextcheck"]<=60) $sec_60[$row["type"]]++;
+ else if($now-$row["nextcheck"]<=300) $sec_300[$row["type"]]++;
+ else $sec_rest[$row["type"]]++;
}