mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-07 09:46:36 +00:00
Fixed Issue 10.
This commit is contained in:
@@ -48,9 +48,14 @@ namespace OpenHardwareMonitor.GUI {
|
||||
private bool plot = false;
|
||||
|
||||
public string ValueToString(float? value) {
|
||||
if (value.HasValue)
|
||||
return string.Format(format, value);
|
||||
else
|
||||
if (value.HasValue) {
|
||||
if (sensor.SensorType == SensorType.Temperature &&
|
||||
UnitManager.TemperatureUnit == TemperatureUnit.Fahrenheit) {
|
||||
return string.Format("{0:F1} °F", value * 1.8 + 32);
|
||||
} else {
|
||||
return string.Format(format, value);
|
||||
}
|
||||
} else
|
||||
return "-";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user