> @@ -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.