--- wxCpuThrottle/src/acpiparser.cpp 2007/08/10 18:12:36 25 +++ wxCpuThrottle/src/acpiparser.cpp 2009/09/16 18:47:18 326 @@ -23,6 +23,7 @@ #include #include #include +#include AcpiParser::AcpiParser() { @@ -40,7 +41,7 @@ char buffer[1024]; std::ifstream in; - in.open("/proc/acpi/processor/CPU1/throttling"); + in.open("/proc/acpi/processor/CPU0/throttling"); if (!in) throw std::runtime_error("Could not open file"); @@ -73,6 +74,8 @@ //std::cout << "tmp: >" << tmp << "< = " << std::endl; break; } + case 3: + break; default: mStateDescriptions.push_back( value ); } @@ -113,7 +116,7 @@ throw std::invalid_argument("newState too small"); std::ofstream out; - out.open("/proc/acpi/processor/CPU1/throttling"); + out.open("/proc/acpi/processor/CPU0/throttling"); if (!out) throw std::runtime_error("Could not open file");