diff options
author | Carl Worth <cworth@cworth.org> | 2007-04-12 18:16:52 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2007-04-12 18:16:52 -0700 |
commit | ec639449de9b630cdb4e7bca4ba8487b3a263184 (patch) | |
tree | de9863dd1c37374257acda88fe6219bdf9e9ec22 /perf/cairo-stats.c | |
parent | 537a795b3b5698d4aa02f2f14e479e9bfd27fe0d (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.c | 2 |
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; } |