From: Florian Forster Date: Fri, 12 Oct 2007 16:09:29 +0000 (+0200) Subject: xmms plugin: Return `-1' when values could be read but are weird. X-Git-Tag: collectd-4.1.3~6 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9896b57523e7f64619660abadb4422ac96c5f8c8;p=collectd.git xmms plugin: Return `-1' when values could be read but are weird. --- diff --git a/src/xmms.c b/src/xmms.c index 238a8ee3..1e646d21 100644 --- a/src/xmms.c +++ b/src/xmms.c @@ -55,7 +55,7 @@ int cxmms_read (void) xmms_remote_get_info (xmms_session, &rate, &freq, &nch); if ((freq == 0) || (nch == 0)) - return (0); + return (-1); cxmms_submit ("bitrate", rate); cxmms_submit ("frequency", freq);