Hi!
What database you are using? Basically all that GetAvgDCIValue does is SQL query like this:
SELECT avg(coalesce(idata_value,0)) FROM idata_<node_id> WHERE item_id=<dci_id> and idata_timestamp between <time_from> and <time_to>
If possible, try to run such query by hand and check the output for correctness.
Best regards,
Victor
What database you are using? Basically all that GetAvgDCIValue does is SQL query like this:
SELECT avg(coalesce(idata_value,0)) FROM idata_<node_id> WHERE item_id=<dci_id> and idata_timestamp between <time_from> and <time_to>
If possible, try to run such query by hand and check the output for correctness.
Best regards,
Victor
You can try 1.2.3-rc2 from here: