mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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
@@ -24,7 +24,7 @@
|
||||
namespace ripple {
|
||||
|
||||
OfferStream::OfferStream (ApplyView& view, ApplyView& cancelView,
|
||||
Book const& book, Clock::time_point when,
|
||||
Book const& book, NetClock::time_point when,
|
||||
StepCounter& counter, beast::Journal journal)
|
||||
: j_ (journal)
|
||||
, view_ (view)
|
||||
@@ -104,8 +104,10 @@ OfferStream::step (Logs& l)
|
||||
}
|
||||
|
||||
// Remove if expired
|
||||
using d = NetClock::duration;
|
||||
using tp = NetClock::time_point;
|
||||
if (entry->isFieldPresent (sfExpiration) &&
|
||||
entry->getFieldU32 (sfExpiration) <= expire_)
|
||||
tp{d{(*entry)[sfExpiration]}} <= expire_)
|
||||
{
|
||||
JLOG(j_.trace) <<
|
||||
"Removing expired offer " << entry->getIndex();
|
||||
|
||||
Reference in New Issue
Block a user