[pve-devel] [PATCH 1/2] fix bug #770: CPU usage stats for containers

Dietmar Maurer dietmar at proxmox.com
Thu Oct 29 12:11:53 CET 2015


> @@ -768,6 +790,12 @@ sub vmstatus {
>  
>      my $active_hash = list_active_containers();
>  
> +    my $cpucount = PVE::ProcFSTools::read_cpuinfo() || 1;

First, you already read in $cpuinfo, so you should use that.

Second, PVE::ProcFSTools::read_cpuinfo() return a hash, so IMHO this
cannot work at all.




More information about the pve-devel mailing list