poor programming practice

svn path=/trunk/boinc/; revision=8029
This commit is contained in:
Bruce Allen 2005-09-15 15:15:07 +00:00
parent a6bf4fc4d3
commit 5e7c9472ae
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}