From 2c917cd32d834fa3b1c7a2bad802ee5037e15152 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Fri, 29 Apr 2005 17:44:08 +0000 Subject: [PATCH] Forgot that dtime() returns double with high precision time. svn path=/trunk/boinc/; revision=5977 --- lib/util.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {