Merge branch 'collectd-5.7' into collectd-5.8
[collectd.git] / src / multimeter.c
index 72b0fed..fc69e02 100644 (file)
@@ -62,7 +62,7 @@ static int multimeter_read_value(double *value) {
       struct timeval time_now;
 
       status = swrite(fd, "D", 1);
-      if (status < 0) {
+      if (status != 0) {
         ERROR("multimeter plugin: swrite failed.");
         return -1;
       }