Module: check_mk
Branch: master
Commit: 377f21b85baa6cb7a99f950d56c21d3e01e4a3b9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=377f21b85baa6c…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Oct 26 13:13:13 2015 +0100
Warning police: Added parentheses around slighly confusing expressions.
---
livestatus/src/TableStateHistory.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/livestatus/src/TableStateHistory.cc b/livestatus/src/TableStateHistory.cc
index b2580d6..7a06b8f 100644
--- a/livestatus/src/TableStateHistory.cc
+++ b/livestatus/src/TableStateHistory.cc
@@ -721,7 +721,7 @@ int TableStateHistory::updateHostServiceState(Query *query, const
LogEntry *entr
} else
state_changed = 0;
}
- else if (hs_state->_host_down != entry->_state > 0)
+ else if (hs_state->_host_down != (entry->_state > 0))
{
if (!only_update)
process(query, hs_state);