From 3dd8821db9a0244a71f94a1a23cd5863fd02e5d9 Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Thu, 1 Jul 2010 17:57:25 -0400 Subject: [PATCH] added to scotts #60 --- popcorn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/popcorn.js b/popcorn.js index 5838d51..8c79a89 100644 --- a/popcorn.js +++ b/popcorn.js @@ -91,9 +91,9 @@ } else if (t.length === 2) { return parseFloat(t[0], 10) + parseFloat(t[1] / 12, 10); } else if (t.length === 3) { - return parseInt(t[0] * 60, 10) + parseFloat(t[1], 10) + parseFloat(t[2] / 30, 10); + return parseInt(t[0] * 60, 10) + parseFloat(t[1], 10) + parseFloat(t[2] / 12, 10); } else if (t.length === 4) { - return parseInt(t[0] * 3600, 10) + parseInt(t[1] * 60, 10) + parseFloat(t[2], 10) + parseFloat(t[3] / 30, 10); + return parseInt(t[0] * 3600, 10) + parseInt(t[1] * 60, 10) + parseFloat(t[2], 10) + parseFloat(t[3] / 12, 10); } }; -- 2.43.0