From kde-commits Thu Apr 08 17:06:51 2004 From: Volker Krause Date: Thu, 08 Apr 2004 17:06:51 +0000 To: kde-commits Subject: kdeutils/klaptopdaemon Message-Id: <20040408170651.A78949A25 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=108144401930976 CVS commit by vkrause: Fix sysfs parsing for CPUFreq. This removes the empty entry in the Performance Profile menu when using CPUFreq and sysfs. M +2 -2 portable.cpp 1.86 --- kdeutils/klaptopdaemon/portable.cpp #1.85:1.86 @@ -1607,5 +1607,5 @@ static int get_cpufreq_sysfs_state(QStri if(!f.atEnd()) { f.readLine(buffer, 1024); - QStringList l = QStringList::split(' ', buffer, false); + QStringList l = QStringList::split(' ', buffer.stripWhiteSpace(), false); for(unsigned int i = 0; i < l.size(); ++i, ++count) { states.append(l[i].stripWhiteSpace());