[cairo-commit] perf/cairo-stats.c
Carl Worth
cworth at kemper.freedesktop.org
Thu Apr 12 18:17:44 PDT 2007
perf/cairo-stats.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
New commits:
diff-tree ec639449de9b630cdb4e7bca4ba8487b3a263184 (from 537a795b3b5698d4aa02f2f14e479e9bfd27fe0d)
Author: Carl Worth <cworth at cworth.org>
Date: Thu Apr 12 18:16:52 2007 -0700
Fix typo in loop control for computation of std. deviation
Thanks to Chris Wilson for pointing out this problem.
diff --git a/perf/cairo-stats.c b/perf/cairo-stats.c
index 2c6c7dc..43711a9 100644
--- a/perf/cairo-stats.c
+++ b/perf/cairo-stats.c
@@ -92,7 +92,7 @@ _cairo_stats_compute (cairo_stats_t *st
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;
}
More information about the cairo-commit
mailing list