Skip to content

Commit c190c5c

Browse files
committed
[#3250] Fixed sporadic test failure
1 parent 5417b26 commit c190c5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/dhcp/high_availability/ha_service.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ HAService::waitingStateHandler() {
888888
case HA_TERMINATED_ST: {
889889
auto partner_in_terminated = communication_state_->getDurationSincePartnerStateTime();
890890
if (!partner_in_terminated.is_not_a_date_time() &&
891-
partner_in_terminated.minutes() >= HA_WAITING_TO_TERMINATED_ST_DELAY_MINUTES) {
891+
(partner_in_terminated.total_seconds()) / 60 >= HA_WAITING_TO_TERMINATED_ST_DELAY_MINUTES) {
892892
LOG_WARN(ha_logger, HA_TERMINATED_PARTNER_DID_NOT_RESTART)
893893
.arg(config_->getThisServerName())
894894
.arg(HA_WAITING_TO_TERMINATED_ST_DELAY_MINUTES);

0 commit comments

Comments
 (0)