We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4072389 + 8b06a47 commit 33f1d97Copy full SHA for 33f1d97
ydb/core/health_check/health_check.cpp
@@ -955,8 +955,7 @@ class TSelfCheckRequest : public TActorBootstrapped<TSelfCheckRequest> {
955
static const int HIVE_SYNCHRONIZATION_PERIOD_MS = 10000;
956
957
bool IsHiveSynchronizationPeriod(NKikimrHive::TEvResponseHiveInfo& hiveInfo) {
958
- auto hiveUptime = hiveInfo.GetStartTimeTimestamp() - hiveInfo.GetResponseTimestamp();
959
- return hiveUptime > HIVE_SYNCHRONIZATION_PERIOD_MS;
+ return hiveInfo.GetStartTimeTimestamp() + HIVE_SYNCHRONIZATION_PERIOD_MS < hiveInfo.GetResponseTimestamp();
960
}
961
962
void AggregateHiveInfo() {
0 commit comments