summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2016-07-17 20:00:45 +0200
committercos <cos>2016-07-17 20:30:40 +0200
commit255a31c21a215bd06cd1884f958130b8e63d3322 (patch)
treef1cb0bbf62f7e80f00e6349b2c2a01b79c5aee38
parent8459903fa0ab8e61a9a373ef74c2e6c3963b7c78 (diff)
downloadmat-255a31c21a215bd06cd1884f958130b8e63d3322.zip
Add missing unit conversion for cl & ml.
-rwxr-xr-xmat4
1 files changed, 4 insertions, 0 deletions
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") {