From 3c433c466865ee0b796d76467db57fc0eca81aaf Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Mon, 5 Mar 2012 09:44:21 -0600 Subject: [PATCH] fixes wsperf avg and KBps starting values --- examples/wsperf/case.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/wsperf/case.hpp b/examples/wsperf/case.hpp index f6a2240760..04590644da 100644 --- a/examples/wsperf/case.hpp +++ b/examples/wsperf/case.hpp @@ -57,6 +57,7 @@ public: ); m_start = boost::chrono::steady_clock::now(); + m_bytes = 0; } void mark() { @@ -64,7 +65,7 @@ public: } void end(connection_ptr con) { - uint64_t avg; + uint64_t avg = 0; std::vector avgs(10); double squaresum = 0; uint64_t stddev = 0;