From: Vincent Bernat Date: Wed, 12 Nov 2014 14:39:42 +0000 (+0100) Subject: smart: when threshold is valid, also test for "less or equal" X-Git-Tag: collectd-5.5.0~154^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7ff56644807f6f783237bacc8f035b1380a698ec;p=collectd.git smart: when threshold is valid, also test for "less or equal" When the threshold is 0, a value of 0 should hit the threshold. --- diff --git a/src/smart.c b/src/smart.c index f0c189e9..3b113bd3 100644 --- a/src/smart.c +++ b/src/smart.c @@ -109,7 +109,7 @@ static void smart_handle_disk_attribute(SkDisk *d, const SkSmartAttributeParsedD plugin_dispatch_values (&vl); - if (a->threshold_valid && a->current_value < a->threshold) + if (a->threshold_valid && a->current_value <= a->threshold) { notification_t notif = { NOTIF_WARNING, cdtime (),