summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-08 08:35:47 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-08 08:35:47 +0000
commit057ec0d9b6d4c5c8c37c01b8bf61b4a145673219 (patch)
treeaad7fec59d21c7aba2fa3183d7007ed275ca7578 /perl-install/detect_devices.pm
parenta33e6aac5f23171a16c184729d0252f9d9e622a1 (diff)
downloaddrakx-backup-do-not-use-057ec0d9b6d4c5c8c37c01b8bf61b4a145673219.tar
drakx-backup-do-not-use-057ec0d9b6d4c5c8c37c01b8bf61b4a145673219.tar.gz
drakx-backup-do-not-use-057ec0d9b6d4c5c8c37c01b8bf61b4a145673219.tar.bz2
drakx-backup-do-not-use-057ec0d9b6d4c5c8c37c01b8bf61b4a145673219.tar.xz
drakx-backup-do-not-use-057ec0d9b6d4c5c8c37c01b8bf61b4a145673219.zip
(getCPUs) enumerate cpus from 1 instead of 0 (part of #4704)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index a864a1db6..d7f908a8e 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -368,6 +368,7 @@ sub getCPUs() {
$cpu = {};
}
$cpu->{$1} = $2 if /^([^\t]+).*:\s(.*)$/;
+ $cpu->{processor}++ if $1 eq "processor";
}
push @cpus, $cpu;
@cpus;