From cebd4a79c9e1eb30a507e0d56c85ea91ea1f8754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Sun, 28 Feb 2010 16:12:55 +0000 Subject: [PATCH] The T-Balancer flow-meter time window seems to be scaled with a factor 4. Added the correction factor to get correct results. --- Hardware/TBalancer/TBalancer.cs | 2 +- Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Hardware/TBalancer/TBalancer.cs b/Hardware/TBalancer/TBalancer.cs index 708b62b..cdbd69f 100644 --- a/Hardware/TBalancer/TBalancer.cs +++ b/Hardware/TBalancer/TBalancer.cs @@ -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]); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 57df3ef..c4148db 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -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")]