We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b139f2a commit 8b06a47Copy full SHA for 8b06a47
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