webengine/osswebengine/WebKitTools/Scripts/num-cpus
author William Roberts <williamr@symbian.org>
Fri, 25 Jun 2010 18:06:10 +0100
branchGCC_SURGE
changeset 82 1c386166cb87
parent 0 dd21522fd290
permissions -rw-r--r--
Speculative fix for npapi.h compilation problem - Bug 1680 If this API is being used, then this ought to flush out the clients...

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