Skip to content

Commit bb4920f

Browse files
hc hive sync status (#4450)
1 parent b3e8d8e commit bb4920f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ydb/core/health_check/health_check.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,8 +1170,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
11701170
static const int HIVE_SYNCHRONIZATION_PERIOD_MS = 10000;
11711171

11721172
bool IsHiveSynchronizationPeriod(NKikimrHive::TEvResponseHiveInfo& hiveInfo) {
1173-
auto hiveUptime = hiveInfo.GetStartTimeTimestamp() - hiveInfo.GetResponseTimestamp();
1174-
return hiveUptime > HIVE_SYNCHRONIZATION_PERIOD_MS;
1173+
return hiveInfo.GetStartTimeTimestamp() + HIVE_SYNCHRONIZATION_PERIOD_MS < hiveInfo.GetResponseTimestamp();
11751174
}
11761175

11771176
void AggregateHiveInfo() {

0 commit comments

Comments
 (0)