Skip to content

Commit 8b06a47

Browse files
hc hive synchronization period
1 parent b139f2a commit 8b06a47

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)