From 1ce2d63bd5c2d5eb297e61546e1e5b6d176e8f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Mercier?= Date: Tue, 11 Nov 2025 04:38:27 -0500 Subject: [PATCH] Make _lastUpdate per storagedevice, not static. (#2024) Otherwise throttling will only enable 1 drive per cycle to update, always the first. --- LibreHardwareMonitorLib/Hardware/Storage/StorageDevice.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LibreHardwareMonitorLib/Hardware/Storage/StorageDevice.cs b/LibreHardwareMonitorLib/Hardware/Storage/StorageDevice.cs index c55e9a8..c8ea4be 100644 --- a/LibreHardwareMonitorLib/Hardware/Storage/StorageDevice.cs +++ b/LibreHardwareMonitorLib/Hardware/Storage/StorageDevice.cs @@ -32,7 +32,7 @@ public sealed class StorageDevice : Hardware, ISmart private long _lastTime; private long _lastWriteCount; - private static DateTime _lastUpdate; + private DateTime _lastUpdate = DateTime.MinValue; private readonly List _sensors = new(); @@ -84,9 +84,6 @@ public sealed class StorageDevice : Hardware, ISmart //Update usage sensors UpdateUsageSensor(); - //Update general sensors - _sensors.ForEach(s => s.Update(_storage)); - //Update attributes foreach (var attribute in _storage.Smart.SmartAttributes) { @@ -99,6 +96,9 @@ public sealed class StorageDevice : Hardware, ISmart found.Attribute = attribute; } } + + //Update general sensors + _sensors.ForEach(s => s.Update(_storage)); } public override string GetReport()