Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 2722)
+++ trunk/psLib/src/math/psStats.c	(revision 2724)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.101 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-12-16 01:35:12 $
+ *  @version $Revision: 1.102 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-12-16 03:01:40 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -862,6 +862,6 @@
     // 1. Compute the sample median.
     p_psVectorSampleMedian(myVector, maskVector, maskVal, stats);
-    if (isnan(stats->sampleMean)) {
-        psLogMsg(__func__, PS_LOG_WARN, "Call to p_psVectorSampleMean returned NAN\n");
+    if (isnan(stats->sampleMedian)) {
+        psLogMsg(__func__, PS_LOG_WARN, "Call to p_psVectorSampleMedian returned NAN\n");
         stats->clippedMean = NAN;
         stats->clippedStdev = NAN;
