mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Change the use of integrals to chrono types as appropriate
This commit is contained in:
committed by
Nik Bougalis
parent
bacf2605a4
commit
e86ff5daa1
@@ -619,11 +619,12 @@ SHAMapStoreImp::health()
|
||||
|
||||
NetworkOPs::OperatingMode mode = netOPs_->getOperatingMode();
|
||||
|
||||
std::int32_t age = ledgerMaster_->getValidatedLedgerAge();
|
||||
if (mode != NetworkOPs::omFULL || age >= setup_.ageThreshold)
|
||||
auto age = ledgerMaster_->getValidatedLedgerAge();
|
||||
if (mode != NetworkOPs::omFULL || age.count() >= setup_.ageThreshold)
|
||||
{
|
||||
journal_.warning << "Not deleting. state: " << mode << " age " << age
|
||||
<< " age threshold " << setup_.ageThreshold;
|
||||
journal_.warning << "Not deleting. state: " << mode
|
||||
<< " age " << age.count()
|
||||
<< " age threshold " << setup_.ageThreshold;
|
||||
healthy_ = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user