From: Florian Forster Date: Fri, 20 Apr 2007 06:15:47 +0000 (+0200) Subject: cpu plugin: Return an integer even under FreeBSD. X-Git-Tag: collectd-4.0.0~71^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ee13823dc29bbcc1e8c24b82705cfa736809fa02;p=collectd.git cpu plugin: Return an integer even under FreeBSD. --- diff --git a/src/cpu.c b/src/cpu.c index 2a1c53a5..d774ca4e 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -383,7 +383,7 @@ static int cpu_read (void) plugin_complain (LOG_ERR, &complain_obj, "cpu plugin: " "sysctlbyname failed: %s.", sstrerror (errno, errbuf, sizeof (errbuf))); - return; + return (-1); } plugin_relief (LOG_NOTICE, &complain_obj, "cpu plugin: "