Hi !
In evalfunc.c, there is something like this :
OK, second line, there is a DBfetch. Last line, the loop with DBfetch. Therefore, we drop the first row. The bug also appears for AVG. I didn't check for other functions. This is not an important bug since the result is still a correct sum, but we drop the most recent value.
In evalfunc.c, there is something like this :
Code:
result = DBselectN(sql, parameter);
row = DBfetch(result);
if(!row || DBis_null(row[0])==SUCCEED)
{
zabbix_log(LOG_LEVEL_DEBUG, "Result for SUM is empty" );
res = FAIL;
}
else
{
if(item->value_type == ITEM_VALUE_TYPE_UINT64)
{
while((row=DBfetch(result)))
Comment