Skip to content

Commit 33f1d97

Browse files
Merge 8b06a47 into 4072389
2 parents 4072389 + 8b06a47 commit 33f1d97

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ydb/core/health_check/health_check.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -955,8 +955,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
955955
static const int HIVE_SYNCHRONIZATION_PERIOD_MS = 10000;
956956

957957
bool IsHiveSynchronizationPeriod(NKikimrHive::TEvResponseHiveInfo& hiveInfo) {
958-
auto hiveUptime = hiveInfo.GetStartTimeTimestamp() - hiveInfo.GetResponseTimestamp();
959-
return hiveUptime > HIVE_SYNCHRONIZATION_PERIOD_MS;
958+
return hiveInfo.GetStartTimeTimestamp() + HIVE_SYNCHRONIZATION_PERIOD_MS < hiveInfo.GetResponseTimestamp();
960959
}
961960

962961
void AggregateHiveInfo() {

0 commit comments

Comments
 (0)