summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-01-21 07:04:26 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-01-21 07:04:26 +0000
commit0eb947b47b934b7e24d58030eecf740a39e95822 (patch)
tree69533d7f7be99aedd6a891f785ba8d25aae613c6
parent04ed2e9e8b186998daa0ad8233682cc4fdb8343d (diff)
fix weight calcs!
SVN revision: 56252
-rw-r--r--src/bin/ui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/ui.c b/src/bin/ui.c
index 235e78e..b579c50 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -229,7 +229,10 @@ _ui_all(void)
229 wfps += (p_fps * weights[t_count]); 229 wfps += (p_fps * weights[t_count]);
230 key_func("Escape"); 230 key_func("Escape");
231 } 231 }
232 for (i = 1; i < ((sizeof(weights) / sizeof(double)) - 1); i++) 232 for (i = 1;
233 (i < ((sizeof(weights) / sizeof(double)) - 1)) &&
234 (weights[i] > 0.0);
235 i++)
233 avgw += weights[i]; 236 avgw += weights[i];
234 avgw /= (i - 1); 237 avgw /= (i - 1);
235 if (t_count > 0) 238 if (t_count > 0)