diff options
author | Aditya Dewan <iit2015097@iiita.ac.in> | 2017-05-16 15:43:57 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2017-05-16 17:52:53 +0200 |
commit | f94b42d9a8de3c0f9269fc94659707e147d04512 (patch) | |
tree | d9f2e01c0f2858cb3370bb3fa614e4a6908b0b47 | |
parent | 2b8fc61dde36a9b7e4b9ff92a64ce4dbacfbd715 (diff) |
tdf#107762 admin-console: memory graph in 'Analytics' tab now working
Change-Id: I6a0ee82e813e80344eaf6ddb7d46eebed98ca5bb
Reviewed-on: https://gerrit.libreoffice.org/37672
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
-rw-r--r-- | wsd/Admin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsd/Admin.cpp b/wsd/Admin.cpp index 700b860b8..8e899d26f 100644 --- a/wsd/Admin.cpp +++ b/wsd/Admin.cpp @@ -327,7 +327,7 @@ void Admin::pollingThread() cpuWait += _cpuStatsTaskIntervalMs; } int memWait = _memStatsTaskIntervalMs - - std::chrono::duration_cast<std::chrono::milliseconds>(now - lastCPU).count(); + std::chrono::duration_cast<std::chrono::milliseconds>(now - lastMem).count(); if (memWait <= 0) { const auto totalMem = getTotalMemoryUsage(); |