diff --git a/lib/util.C b/lib/util.C index 0661b42eb8..cb91520387 100755 --- a/lib/util.C +++ b/lib/util.C @@ -799,7 +799,7 @@ void update_average( avg *= weight; - if (diff>0) { + if ((1.0-weight) > 1.e-6) { avg += (1-weight)*(work/diff_days); } else {