From 255a31c21a215bd06cd1884f958130b8e63d3322 Mon Sep 17 00:00:00 2001 From: cos Date: Sun, 17 Jul 2016 20:00:45 +0200 Subject: Add missing unit conversion for cl & ml. --- mat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mat b/mat index 5407621..2ec9415 100755 --- a/mat +++ b/mat @@ -140,6 +140,10 @@ sub convert_to_unit { $convert{'volume'} = $in_amount; } elsif ($in_unit eq "dl") { $convert{'volume'} = $in_amount / 10; + } elsif ($in_unit eq "cl") { + $convert{'volume'} = $in_amount / 100; + } elsif ($in_unit eq "ml") { + $convert{'volume'} = $in_amount / 1000; } elsif ($in_unit eq "msk") { $convert{'volume'} = $in_amount * 0.015; } elsif ($in_unit eq "tsk") { -- cgit v1.2.3