From 5775dc92d1a256025bae5f0e78270bab75170247 Mon Sep 17 00:00:00 2001 From: George Zhuikov Date: Mon, 18 Nov 2013 11:10:37 +0400 Subject: [PATCH] Fixed flow conversion units --- Src/UnitsNet/Unit.cs | 2 +- Tests/Custom Code/FlowTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/UnitsNet/Unit.cs b/Src/UnitsNet/Unit.cs index ba0c63f3ad..3e6f1d23d8 100644 --- a/Src/UnitsNet/Unit.cs +++ b/Src/UnitsNet/Unit.cs @@ -171,7 +171,7 @@ public enum Unit // Metric [Flow(1, "CubicMetersPerSecond")] CubicMeterPerSecond, - [Flow(3600, "CubicMetersPerHour")] CubicMeterPerHour, + [Flow(1.0/3600, "CubicMetersPerHour")] CubicMeterPerHour, // Metric [RotationalSpeed(1, "RevolutionsPerSecond")] RevolutionPerSecond, diff --git a/Tests/Custom Code/FlowTests.cs b/Tests/Custom Code/FlowTests.cs index c56c6c6b77..955a10886d 100644 --- a/Tests/Custom Code/FlowTests.cs +++ b/Tests/Custom Code/FlowTests.cs @@ -10,7 +10,7 @@ public class FlowTests : FlowTestsBase { public override double CubicMetersPerHourInOneCubicMeterPerSecond { - get { return 1/3600.0; } + get { return 1*3600.0; } } public override double CubicMetersPerSecondInOneCubicMeterPerSecond