corrected the test for number of processors under Linux
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2b9e4799b9
commit
9ec1ed2a7e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user