summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rwxr-xr-xvar2
1 files changed, 2 insertions, 0 deletions
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