chu11 / freeipmi-mirror

Mirror of GNU FreeIPMI Git Repo - http://savannah.gnu.org/projects/freeipmi/. I maintain the upstream of FreeIPMI and can accept Github pull requests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

comment error in libipmimonitoring

chu11 opened this issue · comments

Per discussion on users mailing list

...
/*
 * ipmi_monitoring_sensor_iterator_next
 *
 * Advance iterator to the next set of sensors information
 *
 * Returns 0 on success, -1 on error
 */
int ipmi_monitoring_sensor_iterator_next (ipmi_monitoring_ctx_t c);
...

However I see different behavior - the function returns 1 if iterator has
been advanced successfully, and it returns 0 in the end.