summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxdbhigh/host.c
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-12 14:36:28 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-08-12 14:36:28 +0000
commit43e14ba71f408eb30acd4c46a22e7f7ecb65c997 (patch)
treeedba7b8708f53de25f0b2b22f2c7fe0a56545e50 /src/libs/zbxdbhigh/host.c
parent9b414f6bc817fb041b960df504933d4694e4bd61 (diff)
downloadzabbix-43e14ba71f408eb30acd4c46a22e7f7ecb65c997.tar.gz
zabbix-43e14ba71f408eb30acd4c46a22e7f7ecb65c997.tar.xz
zabbix-43e14ba71f408eb30acd4c46a22e7f7ecb65c997.zip
- [DEV-201] improved performance on disabling/enabling, deleting hosts (Artem)
- [DEV-137] selections *all and groups *all are not saved to profiles (Artem) - [DEV-199] some fixes (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5899 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdbhigh/host.c')
-rw-r--r--src/libs/zbxdbhigh/host.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libs/zbxdbhigh/host.c b/src/libs/zbxdbhigh/host.c
index 81159296..fe2f88bd 100644
--- a/src/libs/zbxdbhigh/host.c
+++ b/src/libs/zbxdbhigh/host.c
@@ -3053,8 +3053,7 @@ static int DBadd_event(
if( !now ) now = time(NULL);
- db_events = DBselect("select value,clock from events where objectid=" ZBX_FS_UI64 " and object=%i "
- " order by clock desc", triggerid, EVENT_OBJECT_TRIGGER);
+ db_events = DBselect("select lastvalue,type from triggers where triggerid=" ZBX_FS_UI64, triggerid);
if( (event_data = DBfetch(db_events)) )
{