code: protected void parseCpuInfo(String[] cpuInfoFile) throws IOException {
      int numCpu = 0;
      double cpuTotalGHz = 0;
      for (String line : cpuInfoFile) {
        if (line.startsWith("processor")) {
          numCpu++;
        }
        if (line.startsWith("cpu MHz")) {
          cpuTotalGHz += Double.parseDouble(line.split(":")[1].trim()) / 1000d;
        }
      }
      ttUtilization.setNumCpu(numCpu);
      ttUtilization.setCpuTotalGHz(cpuTotalGHz);
    }
docs: read total cpu information from /proc directory