]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected the test for number of processors under Linux
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Mar 2003 13:00:04 +0000 (13:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Mar 2003 13:00:04 +0000 (13:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/threadpsx.cpp

index 73348a50ce7ef4500ef903e3e7371541d419b880..89bc5109f77cd4ec76c5f7b5d22bed64f35fbbb7 100644 (file)
@@ -988,8 +988,8 @@ int wxThread::GetCPUCount()
         wxString s;
         if ( file.ReadAll(&s) )
         {
-            // (ab)use Replace() to find the number of "processor" strings
-            size_t count = s.Replace(_T("processor"), _T(""));
+            // (ab)use Replace() to find the number of "processor: num" strings
+            size_t count = s.Replace(_T("processor\t:"), _T(""));
             if ( count > 0 )
             {
                 return count;