mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-26 17:27:34 +01:00
Improved how CPU information is displayed under /co status
This commit is contained in:
parent
cae29f257d
commit
7ab0704002
@ -116,7 +116,7 @@ public class StatusCommand {
|
||||
|
||||
String cpuSpeed = String.valueOf(ConfigHandler.processorInfo.getMaxFreq());
|
||||
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 {
|
||||
cpuInfo = "x" + Runtime.getRuntime().availableProcessors() + " " + Phrase.build(Phrase.CPU_CORES);
|
||||
|
Loading…
Reference in New Issue
Block a user