Fixed bug: If one ping fails, the subsequent analysis report that the ping is down.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Tue, 19 Apr 2011 11:51:10 +0000 (13:51 +0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@intra2net.com>
Tue, 19 Apr 2011 11:53:07 +0000 (13:53 +0200)
commit2c10f87b899fd64b9c2ea5af119620a038915f1b
treeeaf56f4a8792a9c3f5c36cff23df3ea1812b83f5
parent8f31ee7fab4ebe1eb8d69743b21d8d56a7fa54d8
Fixed bug: If one ping fails, the subsequent analysis report that the ping is down.
- The reason was that in HostStatusAnalyzer, analyze_ping_failed_count() was
  called from within increase_ping_failed_count(), thus only when the ping
  failed the ExceededPingFailedLimit was updated, to false. There were no path
  where ExceededPingFailedLimit was updated to true.
  Now, the analyze_ping_failed_count() is called everytime we call
  update_ping_statistics(), which updates ExceededPingFailedLimit everytime.
TODO
src/host/hoststatusanalyzer.cpp