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:
@@ -988,8 +988,8 @@ int wxThread::GetCPUCount()
|
|||||||
wxString s;
|
wxString s;
|
||||||
if ( file.ReadAll(&s) )
|
if ( file.ReadAll(&s) )
|
||||||
{
|
{
|
||||||
// (ab)use Replace() to find the number of "processor" strings
|
// (ab)use Replace() to find the number of "processor: num" strings
|
||||||
size_t count = s.Replace(_T("processor"), _T(""));
|
size_t count = s.Replace(_T("processor\t:"), _T(""));
|
||||||
if ( count > 0 )
|
if ( count > 0 )
|
||||||
{
|
{
|
||||||
return count;
|
return count;
|
||||||
|
Reference in New Issue
Block a user