/[projects]/wxCpuThrottle/src/acpiparser.cpp
ViewVC logotype

Diff of /wxCpuThrottle/src/acpiparser.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 325 by torben, Thu Apr 9 18:39:29 2009 UTC revision 326 by torben, Wed Sep 16 18:47:18 2009 UTC
# Line 41  void AcpiParser::ReadAcpiFile() Line 41  void AcpiParser::ReadAcpiFile()
41          char buffer[1024];          char buffer[1024];
42          std::ifstream in;          std::ifstream in;
43                    
44          in.open("/proc/acpi/processor/CPU1/throttling");          in.open("/proc/acpi/processor/CPU0/throttling");
45          if  (!in)          if  (!in)
46                  throw std::runtime_error("Could not open file");                  throw std::runtime_error("Could not open file");
47                    
# Line 116  void AcpiParser::SetState(int newState) Line 116  void AcpiParser::SetState(int newState)
116                  throw std::invalid_argument("newState too small");                  throw std::invalid_argument("newState too small");
117                    
118          std::ofstream out;          std::ofstream out;
119          out.open("/proc/acpi/processor/CPU1/throttling");          out.open("/proc/acpi/processor/CPU0/throttling");
120                    
121          if (!out)          if (!out)
122                  throw std::runtime_error("Could not open file");                  throw std::runtime_error("Could not open file");

Legend:
Removed from v.325  
changed lines
  Added in v.326

  ViewVC Help
Powered by ViewVC 1.1.20