We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3e8d8e commit bb4920fCopy full SHA for bb4920f
ydb/core/health_check/health_check.cpp
@@ -1170,8 +1170,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
1170
static const int HIVE_SYNCHRONIZATION_PERIOD_MS = 10000;
1171
1172
bool IsHiveSynchronizationPeriod(NKikimrHive::TEvResponseHiveInfo& hiveInfo) {
1173
- auto hiveUptime = hiveInfo.GetStartTimeTimestamp() - hiveInfo.GetResponseTimestamp();
1174
- return hiveUptime > HIVE_SYNCHRONIZATION_PERIOD_MS;
+ return hiveInfo.GetStartTimeTimestamp() + HIVE_SYNCHRONIZATION_PERIOD_MS < hiveInfo.GetResponseTimestamp();
1175
}
1176
1177
void AggregateHiveInfo() {
0 commit comments