https://bugs.documentfoundation.org/show_bug.cgi?id=108323
Bug ID: 108323
Summary: Admin: display up-time ...
Product: LibreOffice Online
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
It would be great to show the up-time in the admin-console. To do that we
should add:
wsd/Admin.cpp:
else if (tokens[0] == "documents" ||
...
tokens[0] == "cpu_stats")
After this an 'if (tokens[0] == "uptime") ...
We should set a timestamp in the Admin::Admin constructor, and return an
offset from that cf.
std::time_t getElapsedTime() const { return std::time(nullptr) - _start; }
To return some data to this command (update wsd/protocol.txt to document it).
Then we need to hack:
It would be great to show the up-time in the admin-console. To do that we
should add:
wsd/Admin.cpp:
else if (tokens[0] == "documents" ||
...
tokens[0] == "cpu_stats")
After this an 'if (tokens[0] == "uptime") ...
We should set a timestamp in the Admin::Admin constructor, and return an
offset from that cf.
std::time_t getElapsedTime() const { return std::time(nullptr) - _start; }
To return some data to this command (update wsd/protocol.txt to document it).
Then we need to hack:
loleaflet/src/admin/*.js
to emit the request, and also to provide a counting time display - as we have
for the existing busy/idle time for documents at the top of the default admin
page.
Thanks ! =)
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs