Improved how CPU information is displayed under /co status
This commit is contained in:
parent
cae29f257d
commit
7ab0704002
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ public class StatusCommand {
|
||||||
|
|
||||||
String cpuSpeed = String.valueOf(ConfigHandler.processorInfo.getMaxFreq());
|
String cpuSpeed = String.valueOf(ConfigHandler.processorInfo.getMaxFreq());
|
||||||
cpuSpeed = String.format("%.2f", Long.valueOf(cpuSpeed) / 1000000000.0);
|
cpuSpeed = String.format("%.2f", Long.valueOf(cpuSpeed) / 1000000000.0);
|
||||||
cpuInfo = modelName + " " + Runtime.getRuntime().availableProcessors() + " x " + cpuSpeed + "GHz.";
|
cpuInfo = "x" + Runtime.getRuntime().availableProcessors() + " " + cpuSpeed + "GHz " + modelName + ".";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cpuInfo = "x" + Runtime.getRuntime().availableProcessors() + " " + Phrase.build(Phrase.CPU_CORES);
|
cpuInfo = "x" + Runtime.getRuntime().availableProcessors() + " " + Phrase.build(Phrase.CPU_CORES);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue