mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-30 13:57:38 +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:
parent
3a64f014e7
commit
cebd4a79c9
@ -214,7 +214,7 @@ namespace OpenHardwareMonitor.Hardware.TBalancer {
|
||||
|
||||
for (int i = 0; i < sensorhubFlows.Length; i++)
|
||||
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;
|
||||
sensorhubFlows[i].Value = pulsesPerSecond * 3600 / pulsesPerLiter;
|
||||
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
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.1.24.0")]
|
||||
[assembly: AssemblyFileVersion("0.1.24.0")]
|
||||
[assembly: AssemblyVersion("0.1.24.1")]
|
||||
[assembly: AssemblyFileVersion("0.1.24.1")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user