From ef1b72cec922a5f8fb11ffcbbdb47bf5b73d9041 Mon Sep 17 00:00:00 2001 From: Rafael Schouten Date: Thu, 3 Jul 2014 00:07:57 +0100 Subject: [PATCH] Megalitres to Kilolitres --- lib/open_food_network/option_value_namer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_food_network/option_value_namer.rb b/lib/open_food_network/option_value_namer.rb index 2447b9fee3..3eb280691b 100644 --- a/lib/open_food_network/option_value_namer.rb +++ b/lib/open_food_network/option_value_namer.rb @@ -44,7 +44,7 @@ module OpenFoodNetwork def scale_for_unit_value units = {'weight' => {1.0 => 'g', 1000.0 => 'kg', 1000000.0 => 'T'}, - 'volume' => {0.001 => 'mL', 1.0 => 'L', 1000000.0 => 'ML'}} + 'volume' => {0.001 => 'mL', 1.0 => 'L', 1000.0 => 'KL'}} # Find the largest available unit where unit_value comes to >= 1 when expressed in it. # If there is none available where this is true, use the smallest available unit.