summaryrefslogtreecommitdiff
path: root/stddev
diff options
context:
space:
mode:
Diffstat (limited to 'stddev')
-rwxr-xr-xstddev2
1 files changed, 1 insertions, 1 deletions
diff --git a/stddev b/stddev
index 891c4c9..5cda0e0 100755
--- a/stddev
+++ b/stddev
@@ -25,7 +25,7 @@ cached.each { |v|
var += (avg - v)**2
}
-stddev = Math.sqrt(var)
+stddev = Math.sqrt(var/i.to_f)
if cfg[:round] >= 0
puts stddev.round cfg[:round]