Author: peterw Date: Sun Dec 10 19:35:47 2006 New Revision: 25116
URL: http://svn.reactos.org/svn/reactos?rev=25116&view=rev Log: - Added -x1 option to output the number of CPUs + 1.
Modified: trunk/tools/mingw-make/cpucount.c
Modified: trunk/tools/mingw-make/cpucount.c URL: http://svn.reactos.org/svn/reactos/trunk/tools/mingw-make/cpucount.c?rev=251... ============================================================================== --- trunk/tools/mingw-make/cpucount.c (original) +++ trunk/tools/mingw-make/cpucount.c Sun Dec 10 19:35:47 2006 @@ -9,6 +9,12 @@ { GetSystemInfo(&SystemInformation); printf("%ld\n", SystemInformation.dwNumberOfProcessors); + return 0; + } + else if (!strcmp(argv[1], "-x1")) + { + GetSystemInfo(&SystemInformation); + printf("%ld\n", (SystemInformation.dwNumberOfProcessors + 1)); return 0; } else if (!strcmp(argv[1], "-x2"))