Because the "max_failed_since < failed_since" will catch both.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
MonOpRequestRef op) {
map<int, failure_reporter_t>::iterator p = reporters.find(who);
if (p == reporters.end()) {
- if (max_failed_since == utime_t())
- max_failed_since = failed_since;
- else if (max_failed_since < failed_since)
+ if (max_failed_since < failed_since)
max_failed_since = failed_since;
p = reporters.insert(map<int, failure_reporter_t>::value_type(who, failure_reporter_t(failed_since))).first;
}