mirror of
https://github.com/30hours/blah2.git
synced 2024-11-08 12:25:42 +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("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;
|
||||
for (size_t i = 0; i < time.size(); i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue