mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Convert DeadlineTimer to chrono (RIPD-1189)
This commit is contained in:
committed by
Nik Bougalis
parent
0cb6a0f961
commit
8ab2236cdd
@@ -81,6 +81,7 @@
|
||||
#include <boost/asio/signal_set.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
#include <atomic>
|
||||
#include <chrono>
|
||||
#include <fstream>
|
||||
|
||||
namespace ripple {
|
||||
@@ -809,8 +810,9 @@ public:
|
||||
JLOG(m_journal.info())
|
||||
<< "Application starting. Version is " << BuildInfo::getVersionString();
|
||||
|
||||
m_sweepTimer.setExpiration (10);
|
||||
m_entropyTimer.setRecurringExpiration (300);
|
||||
using namespace std::chrono_literals;
|
||||
m_sweepTimer.setExpiration (10s);
|
||||
m_entropyTimer.setRecurringExpiration (5min);
|
||||
|
||||
m_io_latency_sampler.start();
|
||||
|
||||
@@ -910,7 +912,8 @@ public:
|
||||
cachedSLEs_.expire();
|
||||
|
||||
// VFALCO NOTE does the call to sweep() happen on another thread?
|
||||
m_sweepTimer.setExpiration (config_->getSize (siSweepInterval));
|
||||
m_sweepTimer.setExpiration (
|
||||
std::chrono::seconds {config_->getSize (siSweepInterval)});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user