summaryrefslogtreecommitdiff
path: root/perf/cairo-stats.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2007-04-12 18:16:52 -0700
committerCarl Worth <cworth@cworth.org>2007-04-12 18:16:52 -0700
commitec639449de9b630cdb4e7bca4ba8487b3a263184 (patch)
treede9863dd1c37374257acda88fe6219bdf9e9ec22 /perf/cairo-stats.c
parent537a795b3b5698d4aa02f2f14e479e9bfd27fe0d (diff)
Fix typo in loop control for computation of std. deviation
Thanks to Chris Wilson for pointing out this problem.
Diffstat (limited to 'perf/cairo-stats.c')
-rw-r--r--perf/cairo-stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perf/cairo-stats.c b/perf/cairo-stats.c
index 2c6c7dc6..43711a97 100644
--- a/perf/cairo-stats.c
+++ b/perf/cairo-stats.c
@@ -92,7 +92,7 @@ _cairo_stats_compute (cairo_stats_t *stats,
stats->median_ticks = values[min_valid + num_valid / 2];
sum = 0.0;
- for (i = min_valid; i < num_valid; i++) {
+ for (i = min_valid; i < min_valid + num_valid; i++) {
delta = values[i] - mean;
sum += delta * delta;
}