Fix standard deviation estimation.
[bluesky.git] / microbench / mixedbench.c
index 7996f1d..50dae27 100644 (file)
@@ -196,6 +196,7 @@ void reset_stats(int print, double duration)
         write_time2 += threads[i].write_time2;
         threads[i].read_count = threads[i].write_count = 0;
         threads[i].read_time = threads[i].write_time = 0;
+        threads[i].read_time2 = threads[i].write_time2 = 0;
         pthread_mutex_unlock(&threads[i].lock);
     }