webengine/osswebengine/WebKitTools/Scripts/num-cpus
author MattD <mattd@symbian.org>
Mon, 14 Sep 2009 13:52:30 +0100
changeset 18 7481d4d3feb9
parent 0 dd21522fd290
permissions -rw-r--r--
Added tag PDK_2.0.e for changeset a4c17f4cd12c

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