From 6528ba30c9300eec086ad2e37954dacf712209c1 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 8 Nov 2019 11:57:31 +0100 Subject: [PATCH] [hostinfo] Fix compile and CPU detection. --- src/modules/hostinfo/HostInfoJob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); }