mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 21:45:52 +00:00
Round close times in a smarter way.
This commit is contained in:
@@ -1464,6 +1464,7 @@ uint32 Ledger::roundCloseTime(uint32 closeTime, uint32 closeResolution)
|
||||
{
|
||||
if (closeTime == 0)
|
||||
return 0;
|
||||
closeTime += (closeResolution / 2);
|
||||
return closeTime - (closeTime % closeResolution);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user