projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a75b275
)
Fix standard deviation estimation.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Mon, 14 Feb 2011 05:39:56 +0000
(21:39 -0800)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Mon, 14 Feb 2011 05:39:56 +0000
(21:39 -0800)
Properly reset statistics counters between intervals.
microbench/mixedbench.c
patch
|
blob
|
history
diff --git
a/microbench/mixedbench.c
b/microbench/mixedbench.c
index
7996f1d
..
50dae27
100644
(file)
--- a/
microbench/mixedbench.c
+++ b/
microbench/mixedbench.c
@@
-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);
}