RAMSPDToolkit Update + timings added (#1835)

* Workaround for page changing on DDR5 systems with SPD Write Protection active has been implemented in new version of RAMSPDToolkit.

Code for LHM has been adjusted accordingly.

Added more sensors (timings).

* Move abbreviation of timings to start of string.

* Simplify names for timings.

* Update version.

* Remove extra padding.
This commit is contained in:
Blacktempel
2025-09-08 13:14:32 +02:00
committed by GitHub
parent 16ad77afc6
commit 3f8294898d
8 changed files with 114 additions and 32 deletions
+3
View File
@@ -646,6 +646,9 @@ public class SensorGadget : Gadget
case SensorType.TimeSpan:
format = "{0:g}";
break;
case SensorType.Timing:
format = "{0:F3} ns";
break;
case SensorType.Energy:
format = "{0:F0} mWh";
break;
+3
View File
@@ -76,6 +76,9 @@ public class SensorNode : Node
case SensorType.TimeSpan:
Format = "{0:g}";
break;
case SensorType.Timing:
Format = "{0:F3} ns";
break;
case SensorType.Energy:
Format = "{0:F0} mWh";
break;
@@ -165,6 +165,8 @@ public class SensorNotifyIcon : IDisposable
return _unitManager.TemperatureUnit == TemperatureUnit.Fahrenheit ? $"{UnitManager.CelsiusToFahrenheit(Sensor.Value):F0}" : $"{Sensor.Value:F0}";
case SensorType.TimeSpan:
return $"{TimeSpan.FromSeconds(Sensor.Value.Value):g}";
case SensorType.Timing:
return $"{Sensor.Value.Value:F3}";
case SensorType.Clock:
case SensorType.Fan:
case SensorType.Flow:
@@ -289,6 +291,7 @@ public class SensorNotifyIcon : IDisposable
case SensorType.Noise: format = "\n{0}: {0:F0} dBA"; break;
case SensorType.Conductivity: format = "\n{0}: {0:F1} µS/cm"; break;
case SensorType.Humidity: format = "\n{0}: {0:F0} %"; break;
case SensorType.Timing: format = "\n{0}: {0:F3} ns"; break;
}
string formattedValue = string.Format(format, Sensor.Name, Sensor.Value);
+4
View File
@@ -91,6 +91,10 @@ public sealed class TypeNode : Node, IExpandPersistNode
Image = Utilities.EmbeddedResources.GetImage("time.png");
Text = "Times";
break;
case SensorType.Timing:
Image = Utilities.EmbeddedResources.GetImage("time.png");
Text = "Timings";
break;
case SensorType.Noise:
Image = Utilities.EmbeddedResources.GetImage("loudspeaker.png");
Text = "Noise Levels";