In upstream ocaml-libvirt, this second parameter has been removed,
because it was found that nr_pcpus can be found by calling the libvirt
API directly.
(try
let domid = rd.rd_domid in
let maplen = C.cpumaplen nr_pcpus in
- let cpu_stats = D.get_cpu_stats rd.rd_dom nr_pcpus in
+ let cpu_stats = D.get_cpu_stats rd.rd_dom in
let rec find_usages_from_stats = function
| ("cpu_time", D.TypedFieldUInt64 usages) :: _ -> usages
| _ :: params -> find_usages_from_stats params