From a4f550075df408826dfb6a316ecdba52cf5d010a Mon Sep 17 00:00:00 2001 From: Simon Schneider <10846939+raynigon@users.noreply.github.com> Date: Sun, 13 Sep 2020 17:24:57 +0200 Subject: [PATCH] Implement fix Ampere Hour Unit --- .../com/raynigon/unit_api/core/service/UnitResolverService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit-api-core/src/main/java/com/raynigon/unit_api/core/service/UnitResolverService.java b/unit-api-core/src/main/java/com/raynigon/unit_api/core/service/UnitResolverService.java index 004fcee3..122a883a 100644 --- a/unit-api-core/src/main/java/com/raynigon/unit_api/core/service/UnitResolverService.java +++ b/unit-api-core/src/main/java/com/raynigon/unit_api/core/service/UnitResolverService.java @@ -79,7 +79,7 @@ private void createCustomUnits() { Unit ampereHour = new TransformedUnit( "Ah", "Ampere-hour", - (Unit) Units.COULOMB.multiply(Units.HOUR), + (Unit) Units.COULOMB.multiply(3600), AbstractConverter.IDENTITY); addUnit(ampereHour); }