[hostinfo] Fix compile and CPU detection.

This commit is contained in:
Adriaan de Groot 2019-11-08 11:57:31 +01:00
parent cec84ee42b
commit 6528ba30c9

View File

@ -118,9 +118,9 @@ hostCPU_Linux()
{ {
QTextStream in( &cpuinfo ); QTextStream in( &cpuinfo );
QString line; QString line;
while ( in.readLineInto( line ) ) while ( in.readLineInto( &line ) )
{ {
if ( line.startsWith( "cpu_type" ) ) if ( line.startsWith( "vendor_id" ) )
{ {
return hostCPUmatch( line ); return hostCPUmatch( line );
} }