Univention Bugzilla – Attachment 9778 Details for
Bug 48340
The cpu stats for nodes in uvmm aren't normalized
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
48340.patch (text/plain), 987 bytes, created by
Jürn Brodersen
on 2018-12-13 13:36:10 CET
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2018-12-13 13:36:10 CET
Size:
987 bytes
patch
obsolete
>diff --git a/virtualization/univention-virtual-machine-manager-daemon/src/univention/uvmm/node.py b/virtualization/univention-virtual-machine-manager-daemon/src/univention/uvmm/node.py >index a33f2c2463..702d286f24 100644 >--- a/virtualization/univention-virtual-machine-manager-daemon/src/univention/uvmm/node.py >+++ b/virtualization/univention-virtual-machine-manager-daemon/src/univention/uvmm/node.py >@@ -1130,7 +1130,7 @@ class Node(PersistentCached): > self.domains[uuid] = domStat > curMem += domStat.pd.curMem > maxMem += domStat.pd.maxMem >- cpu_usage += domStat._cpu_usage >+ cpu_usage += (domStat._cpu_usage * float(domStat.pd.vcpus) / self.pd.cpus) > > for uuid in cached_domains: > # Remove obsolete domains >@@ -1141,7 +1141,7 @@ class Node(PersistentCached): > > self.pd.curMem = curMem > self.pd.maxMem = maxMem >- self.pd.cpu_usage = min(1000, cpu_usage) >+ self.pd.cpu_usage = cpu_usage > > cache_id = self.calc_cache_id() > if self._cache_id != cache_id:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48340
: 9778