Update for DiskInfoToolkit Version 2.0.0. (#2298)

* Update for DiskInfoToolkit Version 2.0.0.

* PR comments

* PR comments.

* Apply suggestion from @PhyxionNL

---------

Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
This commit is contained in:
Blacktempel
2026-04-06 19:26:02 +02:00
committed by GitHub
co-authored by PhyxionNL
parent 9d9bb0084b
commit 9e831e07b2
6 changed files with 180 additions and 1869 deletions
@@ -4,9 +4,11 @@
// Partial Copyright (C) Michael Möller <mmoeller@openhardwaremonitor.org> and Contributors.
// All Rights Reserved.
using StorageDeviceDIT = DiskInfoToolkit.StorageDevice;
namespace LibreHardwareMonitor.Hardware.Storage;
internal delegate float GetStorageDeviceSensorValue(DiskInfoToolkit.Storage storage);
internal delegate float GetStorageDeviceSensorValue(StorageDeviceDIT storage);
internal class StorageDeviceSensor : Sensor
{
@@ -18,7 +20,7 @@ internal class StorageDeviceSensor : Sensor
_getValue = getValue;
}
public void Update(DiskInfoToolkit.Storage storage)
public void Update(StorageDeviceDIT storage)
{
var value = _getValue(storage);