src/linux_parser.cpp
int LinuxParser::RunningProcesses() {
  string key, value, line;
  std::ifstream stream(kProcDirectory + kStatFilename);
  if (stream.is_open()) {
    while (std::getline(stream, line)){
      std::istringstream linestream(line);
      while (linestream >> key >> value) {
        if (key == "procs_running") { 
              return std::stoi(value);
        }
      }
    }
  }
    return 0;
}
// TODO: Read and return the number of running processes
Read and return the number of running processes
Read and return the number of running processes
int LinuxParser::RunningProcesses() {
  string key, value, line;
  std::ifstream stream(kProcDirectory + kStatFilename);
  if (stream.is_open()) {
    while (std::getline(stream, line)){
      std::istringstream linestream(line);
      while (linestream >> key >> value) {
        if (key == "procs_running") { 
              return std::stoi(value);
        }
      }
    }
  }
    return 0;
}
int LinuxParser :: RunningProcesses ( ) { string key , value , line ; std :: ifstream stream ( kProcDirectory + kStatFilename ) ; if ( stream . is_open ( ) ) { while ( std :: getline ( stream , line ) ) { std :: istringstream linestream ( line ) ; while ( linestream >> key >> value ) { if ( key == " " ) { return std :: stoi ( value ) ; } } } } return 0 ; }
TODO: Read and return the number of running processes
TODO : Read and return the number of running processes