|
@@ -24,7 +24,8 @@ namespace OhmGraphite
|
|
SmallData, // MB = 2^20 Bytes
|
|
SmallData, // MB = 2^20 Bytes
|
|
Throughput, // B/s
|
|
Throughput, // B/s
|
|
TimeSpan, // Seconds
|
|
TimeSpan, // Seconds
|
|
- Energy // milliwatt-hour (mWh)
|
|
|
|
|
|
+ Energy, // milliwatt-hour (mWh)
|
|
|
|
+ Noise // dBA
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -87,6 +88,8 @@ namespace OhmGraphite
|
|
return SensorType.TimeSpan;
|
|
return SensorType.TimeSpan;
|
|
case LibreHardwareMonitor.Hardware.SensorType.Energy:
|
|
case LibreHardwareMonitor.Hardware.SensorType.Energy:
|
|
return SensorType.Energy;
|
|
return SensorType.Energy;
|
|
|
|
+ case LibreHardwareMonitor.Hardware.SensorType.Noise:
|
|
|
|
+ return SensorType.Noise;
|
|
default:
|
|
default:
|
|
throw new ArgumentOutOfRangeException(nameof(s), s, "unexpected hardware monitor sensor translation");
|
|
throw new ArgumentOutOfRangeException(nameof(s), s, "unexpected hardware monitor sensor translation");
|
|
}
|
|
}
|