From 5e7c9472aed38845f41479b7c070e1f18a89e9c0 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Thu, 15 Sep 2005 15:15:07 +0000 Subject: [PATCH] poor programming practice svn path=/trunk/boinc/; revision=8029 --- sched/sched_util.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sched/sched_util.C b/sched/sched_util.C index c25940da76..7dfd70f232 100644 --- a/sched/sched_util.C +++ b/sched/sched_util.C @@ -225,9 +225,9 @@ void compute_avg_turnaround(HOST& host, double turnaround) { } double elapsed_wallclock_time() { - static double wallclock_execution_time=0; + static double wallclock_execution_time=0.0; - if (!wallclock_execution_time) { + if (wallclock_execution_time == 0.0) { wallclock_execution_time=dtime(); return 0.0; }