Skip to content

Commit

Permalink
Merge pull request #5391 from LunfanZhang/private/luzhan/CA-388180
Browse files Browse the repository at this point in the history
CA-388180 Correcting Domain CPU Usage Values
  • Loading branch information
minglumlu authored Jan 30, 2024
2 parents 115339b + b2f9908 commit e196d15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ let dss_vcpus xc doms =
let dom_cpu_time =
Int64.(to_float @@ logand dom.Xenctrl.cpu_time xen_flag_complement)
in
let dom_cpu_time = dom_cpu_time /. 1.0e9 in
let dom_cpu_time =
dom_cpu_time /. (1.0e9 *. float_of_int dom.Xenctrl.nr_online_vcpus)
in
try
let ri = Xenctrl.domain_get_runstate_info xc domid in
( Rrd.VM uuid
Expand Down

0 comments on commit e196d15

Please sign in to comment.