mirror of
https://github.com/30hours/blah2.git
synced 2025-03-19 00:21:33 +00:00
Add uptime in s and days
This commit is contained in:
parent
76170d8c57
commit
79e05074af
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ std::string Timing::to_json()
|
||||||
|
|
||||||
document.AddMember("timestamp", tNow, allocator);
|
document.AddMember("timestamp", tNow, allocator);
|
||||||
document.AddMember("nCpi", n, allocator);
|
document.AddMember("nCpi", n, allocator);
|
||||||
document.AddMember("uptime", uptime, allocator);
|
document.AddMember("uptime_s", uptime/1000.0, allocator);
|
||||||
|
document.AddMember("uptime_days", uptime/1000.0/60/60/24, allocator);
|
||||||
rapidjson::Value name_value;
|
rapidjson::Value name_value;
|
||||||
for (size_t i = 0; i < time.size(); i++)
|
for (size_t i = 0; i < time.size(); i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue