PDA

View Full Version : PATCH : Factor 10 for history of events


SLMitch
20-07-2006, 00:00
I found in the code a factor 10 for the display of history of events in screen.
Why this 10 ? I don't know, so i remove it to have a normal comportment.


diff -ruwBb zabbix-1.1-orig/frontends/php/include/events.inc.php zabbix-1.1/frontends/php/include/events.inc.php
--- zabbix-1.1-orig/frontends/php/include/events.inc.php 2006-06-08 21:39:07.000000000 +0200
+++ zabbix-1.1/frontends/php/include/events.inc.php 2006-07-19 15:22:25.000000000 +0200
@@ -34,8 +34,7 @@
{
$sql="select distinct triggerid,clock,value from alarms order by clock desc";
}
- $result=DBselect($sql,10*($start+$num));
-
+ $result=DBselect($sql,($start+$num));
$table = new CTableInfo(S_NO_EVENTS_FOUND);
$table->setHeader(array(S_TIME, S_DESCRIPTION, S_VALUE, S_SEVERITY));
$col=0;

Alexei
20-07-2006, 00:13
The 10 is on purpose. Some events may be filtered out by user permission, so we select 10x times more rows.

Hichhiker
06-10-2006, 00:04
The 10 is on purpose. Some events may be filtered out by user permission, so we select 10x times more rows.

It seems to DISPLAY 10x more lines than selected (at least in 1.1.2) which I assume is not the intended result.

-HH

Alexei
10-10-2006, 16:07
It seems to DISPLAY 10x more lines than selected (at least in 1.1.2) which I assume is not the intended result.

-HH
How many rows it displays? I see only 100 as supposed to be!