cpu form opt

This commit is contained in:
RememBerBer 2021-11-24 21:34:49 +08:00
parent 21cd579878
commit 243c733f9f
2 changed files with 6 additions and 1 deletions

View File

@ -148,7 +148,7 @@
<!-- setup generation properties -->
<setupMode>installForAllUsers</setupMode>
<!-- <createDesktopIconTask>true</createDesktopIconTask>-->
<createDesktopIconTask>true</createDesktopIconTask>
<disableDirPage>false</disableDirPage>
<disableFinishedPage>false</disableFinishedPage>
<setupLanguages>

View File

@ -274,6 +274,11 @@ public class CpuForm {
Sensors sensors = App.si.getHardware().getSensors();
cpuForm.getTemperatureLabel().setText(String.format("%.1f°C", sensors.getCpuTemperature()));
cpuForm.getTemperatureLabel().setToolTipText("On Windows, if not running Open Hardware Monitor, \n" +
"requires elevated permissions and hardware BIOS that supports publishing to WMI. \n" +
"In this case, returns the temperature of the \"Thermal Zone\" \n" +
"which may be different than CPU temperature obtained from other sources. \n" +
"In addition, some motherboards may only refresh this value on certain events.");
cpuForm.getVoltageLabel().setText(String.valueOf(sensors.getCpuVoltage()));
cpuForm.getFanSpeedsLabel().setText(Arrays.toString(sensors.getFanSpeeds()));
}