From 563af33bc48281d19dce701398dbb88cb54fd7ec Mon Sep 17 00:00:00 2001 From: Cary Clark <> Date: Tue, 14 Apr 2009 06:33:00 -0700 Subject: AI 146110: add missing files to webkit brings it in sync with webkit svn cl 42046 Automated import of CL 146110 --- WebKitTools/Scripts/num-cpus | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 WebKitTools/Scripts/num-cpus (limited to 'WebKitTools/Scripts/num-cpus') diff --git a/WebKitTools/Scripts/num-cpus b/WebKitTools/Scripts/num-cpus new file mode 100755 index 0000000..c5f28a1 --- /dev/null +++ b/WebKitTools/Scripts/num-cpus @@ -0,0 +1,16 @@ +#!/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"; -- cgit v1.1