You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGGER.info(String.format("Retrieved value [%s] from file [%s]. This corresponds to a CPU speed of [%s] MHz.", cpuInfoFreq, cpuInfoFreqFileName, cpuInfoFreq / 1000));
155
-
returncpuInfoFreq / 1000;
156
-
} catch (IOException | NumberFormatExceptione) {
157
-
LOGGER.error(String.format("Unable to retrieve the CPU speed from file [%s]", cpuInfoFreqFileName), e);
158
-
return0L;
160
+
for (finalStringcpuInfoFreqFileName: cpuInfoFreqFileNames) {
161
+
LOGGER.info(String.format("Fetching CPU speed from file [%s].", cpuInfoFreqFileName));
LOGGER.info(String.format("Retrieved value [%s] from file [%s]. This corresponds to a CPU speed of [%s] MHz.", cpuInfoFreq, cpuInfoFreqFileName, cpuInfoFreq / 1000));
165
+
returncpuInfoFreq / 1000;
166
+
} catch (IOException | NumberFormatExceptione) {
167
+
LOGGER.error(String.format("Unable to retrieve the CPU speed from file [%s]", cpuInfoFreqFileName), e);
0 commit comments