oshi:update to 6.1.3

This commit is contained in:
RememBerBer 2022-02-22 21:50:01 +08:00
parent 571b3d68d3
commit 6d04ac1cda
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
<flatlaf-intellij-themes.version>2.0.1</flatlaf-intellij-themes.version>
<hutool-all.version>5.7.21</hutool-all.version>
<fastjson.version>1.2.79</fastjson.version>
<oshi-core.version>6.1.2</oshi-core.version>
<oshi-core.version>6.1.3</oshi-core.version>
<jfreechart.version>1.5.3</jfreechart.version>
</properties>

View File

@ -309,7 +309,7 @@ public class CpuForm {
totalFreq = divide.add(totalFreq);
}
cpuForm.getFreqLabel().setText(String.valueOf(totalFreq.divide(new BigDecimal(4), 2, RoundingMode.HALF_UP)));
cpuForm.getFreqLabel().setText(String.valueOf(totalFreq.divide(new BigDecimal(currentFreq.length), 2, RoundingMode.HALF_UP)));
}