webengine/osswebengine/WebKitTools/Scripts/num-cpus
author andy simpson <andrews@symbian.org>
Fri, 08 Jan 2010 16:24:11 +0000
changeset 24 745be455a3ad
parent 0 dd21522fd290
permissions -rw-r--r--
Added tag PDK_3.0.e for changeset ce710749a55f

#!/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";