-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/devicesinfo.cpp b/noncore/settings/sysinfo/devicesinfo.cpp index b463e43..7e8aee8 100644 --- a/noncore/settings/sysinfo/devicesinfo.cpp +++ b/noncore/settings/sysinfo/devicesinfo.cpp | |||
@@ -147,25 +147,25 @@ void CpuCategory::populate() | |||
147 | new CpuDevice( this, "ERROR: /proc/cpuinfo not found or unaccessible" ); | 147 | new CpuDevice( this, "ERROR: /proc/cpuinfo not found or unaccessible" ); |
148 | return; | 148 | return; |
149 | } | 149 | } |
150 | QTextStream cpuinfo( &cpuinfofile ); | 150 | QTextStream cpuinfo( &cpuinfofile ); |
151 | 151 | ||
152 | int cpucount = 0; | 152 | int cpucount = 0; |
153 | CpuDevice* dev = 0; | 153 | CpuDevice* dev = 0; |
154 | 154 | ||
155 | while ( !cpuinfo.atEnd() ) | 155 | while ( !cpuinfo.atEnd() ) |
156 | { | 156 | { |
157 | QString line = cpuinfo.readLine(); | 157 | QString line = cpuinfo.readLine(); |
158 | odebug << "got line '" << line << "'" << oendl; | 158 | odebug << "got line '" << line << "'" << oendl; |
159 | if ( line.startsWith( "processor" ) ) | 159 | if ( line.lower().startsWith( "processor" ) ) |
160 | { | 160 | { |
161 | dev = new CpuDevice( this, QString( "CPU #%1" ).arg( cpucount++ ) ); | 161 | dev = new CpuDevice( this, QString( "CPU #%1" ).arg( cpucount++ ) ); |
162 | dev->addInfo( line ); | 162 | dev->addInfo( line ); |
163 | } | 163 | } |
164 | else | 164 | else |
165 | { | 165 | { |
166 | if ( dev ) dev->addInfo( line ); | 166 | if ( dev ) dev->addInfo( line ); |
167 | } | 167 | } |
168 | } | 168 | } |
169 | } | 169 | } |
170 | 170 | ||
171 | //================================================================================================= | 171 | //================================================================================================= |