mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Reduce coupling to date.h by calling C++17 chrono functions
This commit is contained in:
committed by
manojsdoshi
parent
64e4a89470
commit
9932a19139
@@ -2589,8 +2589,8 @@ NetworkOPsImp::getServerInfo(bool human, bool admin, bool counters)
|
||||
|
||||
info[jss::server_state] = strOperatingMode(admin);
|
||||
|
||||
info[jss::time] = to_string(date::floor<std::chrono::microseconds>(
|
||||
std::chrono::system_clock::now()));
|
||||
info[jss::time] = to_string(
|
||||
floor<std::chrono::microseconds>(std::chrono::system_clock::now()));
|
||||
|
||||
if (needNetworkLedger_)
|
||||
info[jss::network_ledger] = "waiting";
|
||||
|
||||
Reference in New Issue
Block a user