webengine/osswebengine/WebKitTools/Scripts/num-cpus
author andy simpson <andrews@symbian.org>
Fri, 20 Nov 2009 14:04:25 +0000
changeset 30 9bdd3755eaf6
parent 0 dd21522fd290
permissions -rw-r--r--
merge 200941 drop

#!/usr/bin/perl

use strict;
use warnings;

use Win32API::Registry 0.21 qw( :ALL );


my $key;
my $i = 0;
while (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\$i", 0, KEY_READ, $key)) {
    $i++;
    RegCloseKey($key);
}

print "$i\n";