Report server uptime in server_info

This commit is contained in:
Nik Bougalis
2015-12-09 12:11:15 -08:00
parent 496fea5995
commit 25fe66bafc

View File

@@ -2132,6 +2132,7 @@ Json::Value NetworkOPsImp::getServerInfo (bool human, bool admin)
}
info[jss::state_accounting] = accounting_.json();
info[jss::uptime] = UptimeTimer::getInstance ().getElapsedSeconds ();
return info;
}