af1c98e Fix virCgroupGetPercpuStats with non-continuous present CPUs

Authored and Committed by Ján Tomko 9 years ago
    Fix virCgroupGetPercpuStats with non-continuous present CPUs
    
    Per-cpu stats are only shown for present CPUs in the cgroups,
    but we were only parsing the largest CPU number from
    /sys/devices/system/cpu/present and looking for stats even for
    non-present CPUs.
    This resulted in:
    internal error: cpuacct parse error
    
        
file modified
+1 -1
file modified
+17 -0
file modified
+1 -0
file modified
+18 -6
file modified
+38 -6
file modified
+35 -12