model => 'unknown',
mhz => 0,
cpus => 1,
+ sockets => 1,
};
my $fh = IO::File->new ($fn, "r");
$res->{mhz} = $1 if !$res->{mhz};
} elsif ($line =~ m/^flags\s*:.*(vmx|svm)/) {
$res->{hvm} = 1; # Hardware Virtual Machine (Intel VT / AMD-V)
+ } elsif ($line =~ m/^physical id\s*:\s*(\d+)\s*$/i) {
+ my $sid = $1 + 1;
+ $res->{sockets} = $sid if $sid > $res->{sockets};
}
+
}
$res->{cpus} = $count;
+libpve-common-perl (1.0-22) unstable; urgency=low
+
+ * return number of sockets in read_cpuinfo
+
+ -- Proxmox Support Team <support@proxmox.com> Mon, 26 Mar 2012 07:53:35 +0200
+
libpve-common-perl (1.0-21) unstable; urgency=low
* use Digest::SHA instead of Digest::SHA1