From e7281b5c337f9684dc40c809262afc9359b0c771 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 7 Mar 2014 17:52:25 +0100 Subject: fix --- var | 2 ++ 1 file changed, 2 insertions(+) (limited to 'var') diff --git a/var b/var index 30c638a..fe4aa22 100755 --- a/var +++ b/var @@ -26,6 +26,8 @@ cached.each { |v| var += (avg - v)**2 } +var /= i.to_f + if cfg[:round] >= 0 puts var.round cfg[:round] else -- cgit v1.2.3