projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
394a4b4
)
smart: when threshold is valid, also test for "less or equal"
author
Vincent Bernat
<vincent@bernat.im>
Wed, 12 Nov 2014 14:39:42 +0000
(15:39 +0100)
committer
Vincent Bernat
<vincent@bernat.im>
Wed, 12 Nov 2014 14:39:42 +0000
(15:39 +0100)
When the threshold is 0, a value of 0 should hit the threshold.
src/smart.c
patch
|
blob
|
history
diff --git
a/src/smart.c
b/src/smart.c
index
f0c189e
..
3b113bd
100644
(file)
--- 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 (),