Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 7985)
+++ trunk/psLib/src/math/psStats.c	(revision 7986)
@@ -16,6 +16,6 @@
  * use ->min and ->max (PS_STAT_USE_RANGE)
  *
- *  @version $Revision: 1.178 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-07-15 02:57:12 $
+ *  @version $Revision: 1.179 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-07-26 04:21:39 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -193,7 +193,7 @@
                     if (stats->min <= data[i] && data[i] <= stats->max) {
                         mean += data[i];
+                        count++;
                     }
                 }
-                count = numData;
             }
         } else {
