[Libreoffice-bugs] [Bug 108323] New: Admin: display up-time ...
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 3 12:08:06 UTC 2017
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: libreoffice-bugs at lists.freedesktop.org
Reporter: michael.meeks at collabora.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170603/36d2b297/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list