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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user