summaryrefslogtreecommitdiff
path: root/wsd
diff options
context:
space:
mode:
authorGabriel Masei <gabriel.masei@1and1.ro>2020-04-29 14:59:03 +0300
committerMichael Meeks <michael.meeks@collabora.com>2020-04-29 16:46:32 +0200
commitb1e970371e289652b11648cc659b512bd45d27ed (patch)
treec556c8160286c4e7bfd96d0cdce42073710f311b /wsd
parent1ded31fc35c436dc89e062baa6d32f14a4063930 (diff)
admin: fix kit CPU metrics computation
Change-Id: Ib0f8411fa3919b4cffe640c13d87e1a644ed8e69 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93149 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'wsd')
-rw-r--r--wsd/AdminModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsd/AdminModel.cpp b/wsd/AdminModel.cpp
index ff99578ae..e88b7aeab 100644
--- a/wsd/AdminModel.cpp
+++ b/wsd/AdminModel.cpp
@@ -941,7 +941,7 @@ struct KitProcStats
void UpdateAggregateStats(int pid)
{
_threadCount.Update(Util::getStatFromPid(pid, 19));
- _cpuTime.Update(Util::getCpuUsage(pid));
+ _cpuTime.Update(Util::getCpuUsage(pid) / sysconf (_SC_CLK_TCK));
}
int unassignedCount;