[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/klaptopdaemon
From:       Volker Krause <volker.krause () rwth-aachen ! de>
Date:       2004-04-08 17:06:51
Message-ID: 20040408170651.A78949A25 () office ! kde ! org
[Download RAW message or body]

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());


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic