mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 06:15:08 +00:00
The T-Balancer flow-meter time window seems to be scaled with a factor 4. Added the correction factor to get correct results.
This commit is contained in:
@@ -214,7 +214,7 @@ namespace OpenHardwareMonitor.Hardware.TBalancer {
|
|||||||
|
|
||||||
for (int i = 0; i < sensorhubFlows.Length; i++)
|
for (int i = 0; i < sensorhubFlows.Length; i++)
|
||||||
if (data[231 + i] > 0 && data[234] > 0) {
|
if (data[231 + i] > 0 && data[234] > 0) {
|
||||||
float pulsesPerSecond = ((float)data[231 + i]) / data[234];
|
float pulsesPerSecond = (data[231 + i] * 4.0f) / data[234];
|
||||||
float pulsesPerLiter = sensorhubFlows[i].Parameters[0].Value;
|
float pulsesPerLiter = sensorhubFlows[i].Parameters[0].Value;
|
||||||
sensorhubFlows[i].Value = pulsesPerSecond * 3600 / pulsesPerLiter;
|
sensorhubFlows[i].Value = pulsesPerSecond * 3600 / pulsesPerLiter;
|
||||||
ActivateSensor(sensorhubFlows[i]);
|
ActivateSensor(sensorhubFlows[i]);
|
||||||
|
@@ -69,5 +69,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.1.24.0")]
|
[assembly: AssemblyVersion("0.1.24.1")]
|
||||||
[assembly: AssemblyFileVersion("0.1.24.0")]
|
[assembly: AssemblyFileVersion("0.1.24.1")]
|
||||||
|
Reference in New Issue
Block a user