webengine/osswebengine/WebKitTools/Scripts/num-cpus
author Peter Fordham <peter.fordham@gmail.com>
Fri, 05 Mar 2010 16:34:30 -0800
branchCompilerCompatibility
changeset 54 b218e2134300
parent 0 dd21522fd290
permissions -rw-r--r--
Bug 2167 - Specify member function pointers more consistently for GCC

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