[hostinfo] Fix compile and CPU detection.
This commit is contained in:
parent
cec84ee42b
commit
6528ba30c9
@ -118,9 +118,9 @@ hostCPU_Linux()
|
||||
{
|
||||
QTextStream in( &cpuinfo );
|
||||
QString line;
|
||||
while ( in.readLineInto( line ) )
|
||||
while ( in.readLineInto( &line ) )
|
||||
{
|
||||
if ( line.startsWith( "cpu_type" ) )
|
||||
if ( line.startsWith( "vendor_id" ) )
|
||||
{
|
||||
return hostCPUmatch( line );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user