Mercurial > hg > Members > nobuyasu > jungle_benchmark
changeset 26:cfae346a232e default tip
Fix millsec to sec calc_sd.rb
author | Nobuyasu |
---|---|
date | Fri, 31 Jan 2014 04:58:34 +0900 |
parents | 726b2deadbe3 |
children | |
files | distributed/weighttp/calc_sd.rb |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/distributed/weighttp/calc_sd.rb Fri Jan 31 04:51:45 2014 +0900 +++ b/distributed/weighttp/calc_sd.rb Fri Jan 31 04:58:34 2014 +0900 @@ -58,10 +58,9 @@ end def print_log(nodes, array) -# puts array.size() -# puts array.variance -# puts array.standard_devitation - puts nodes.to_s + " " + array.average.to_s + " " + array.standard_devitation.to_s + average = (array.average.to_i).to_f / 1000 + sd = (array.standard_devitation.to_i).to_f / 1000 + puts nodes.to_s + " " + average.to_s + " " + sd.to_s end def start(files)