<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Admin: display up-time ..."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108323">108323</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Admin: display up-time ...
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice Online
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>michael.meeks@collabora.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 ! =)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>