From 243c733f9f5fd003ac5727fef57bacfa5bd6170a Mon Sep 17 00:00:00 2001 From: RememBerBer Date: Wed, 24 Nov 2021 21:34:49 +0800 Subject: [PATCH] cpu form opt --- pom.xml | 2 +- src/main/java/com/luoboduner/moo/info/ui/form/CpuForm.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7d335b8..f2bb82e 100644 --- a/pom.xml +++ b/pom.xml @@ -148,7 +148,7 @@ installForAllUsers - + true false false diff --git a/src/main/java/com/luoboduner/moo/info/ui/form/CpuForm.java b/src/main/java/com/luoboduner/moo/info/ui/form/CpuForm.java index 1455b8d..c8a3933 100644 --- a/src/main/java/com/luoboduner/moo/info/ui/form/CpuForm.java +++ b/src/main/java/com/luoboduner/moo/info/ui/form/CpuForm.java @@ -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())); }