private void publishStaticParameters()

in src/jetbrains/buildserver/agentInfo/AgentSystemInfo.java [125:139]


  private void publishStaticParameters() {
    final Long physicalMemorySizeMB = getPhysicalMemorySizeMB();
    if (physicalMemorySizeMB != null) {
      myConfig.addConfigurationParameter(PHYSICAL_MEMORY_KEY, String.valueOf(physicalMemorySizeMB));
    } else {
      LOG.warn("Failed to detect physical memory size. Property " + PHYSICAL_MEMORY_KEY + " will not be set");
    }

    final Long processorsCount = getProcessorsCount();
    if (processorsCount != null) {
      myConfig.addConfigurationParameter(PROCESSORS_COUNT_KEY, String.valueOf(processorsCount));
    } else {
      LOG.warn("Failed to detect number of processors. Property " + PROCESSORS_COUNT_KEY + " will not be set");
    }
  }