Skip to content

Commit

Permalink
Improved how CPU information is displayed under /co status
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Aug 16, 2024
1 parent cae29f2 commit 7ab0704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/coreprotect/command/StatusCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ else if (modelName.contains(" Processor")) {

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);
Expand Down

0 comments on commit 7ab0704

Please sign in to comment.