diff --git a/src/modules/hostinfo/HostInfoJob.cpp b/src/modules/hostinfo/HostInfoJob.cpp index 9adce8f4b..3dcbe3216 100644 --- a/src/modules/hostinfo/HostInfoJob.cpp +++ b/src/modules/hostinfo/HostInfoJob.cpp @@ -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 ); }