diff options
author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-11-13 08:33:47 +0000 |
---|---|---|
committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-11-13 08:33:47 +0000 |
commit | be1f5b737ec9d68ef97ab716cf982d9445e64f20 (patch) | |
tree | bcd2e96604cd4a844c7cc90c07722acde33335ba /frontends/php/include | |
parent | e0804e0b83b63f79b4d61c20d9cfece0f2ca0db1 (diff) | |
download | zabbix-be1f5b737ec9d68ef97ab716cf982d9445e64f20.tar.gz zabbix-be1f5b737ec9d68ef97ab716cf982d9445e64f20.tar.xz zabbix-be1f5b737ec9d68ef97ab716cf982d9445e64f20.zip |
- [NTT-47] latest data is very slow to be displayed (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@4998 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r-- | frontends/php/include/items.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index 8a4d9a4d..2cb22b50 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -1091,7 +1091,7 @@ COpt::profiling_stop('prepare table'); { if($db_item["value_type"] == ITEM_VALUE_TYPE_LOG) { - $row=DBfetch(DBselect("select value from history_log where itemid=".$db_item["itemid"]." order by id desc", 1)); + $row=DBfetch(DBselect("select value from history_log where itemid=".$db_item["itemid"]." order by clock desc", 1)); if($row) { $lastvalue=/*nbsp(htmlspecialchars(*/$row["value"]/*))*/; |