mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Report server uptime in server_info
This commit is contained in:
@@ -2132,6 +2132,7 @@ Json::Value NetworkOPsImp::getServerInfo (bool human, bool admin)
|
|||||||
}
|
}
|
||||||
|
|
||||||
info[jss::state_accounting] = accounting_.json();
|
info[jss::state_accounting] = accounting_.json();
|
||||||
|
info[jss::uptime] = UptimeTimer::getInstance ().getElapsedSeconds ();
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user