summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-28 22:45:25 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-11-28 22:45:25 +0000
commit3b3ad83489cf0f50c6bf283a118935af367fd403 (patch)
treef8f0a0bdb7c9aed5125f1419983338a363bfbcf8 /frontends/php/include
parent65194d4220bfa93058dc2dced0dcd076c1e18cb5 (diff)
- fix for get_last_service_value(). Thanks to Sebastien
"Slix" Linard. (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1063 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 9250533b..4103151c 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -4281,7 +4281,12 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
{
$sql="select value from service_alarms where serviceid=$serviceid and clock=".DBget_field($result,0,1);
$result2=DBselect($sql);
- $value=DBget_field($result2,0,0);
+// Assuring that we get very latest service value. There could be several with the same timestamp
+// $value=DBget_field($result2,0,0);
+ for($i=0;$i<DBnum_rows($result2);$i++)
+ {
+ $value=DBget_field($result2,$i,0);
+ }
}
else
{