Current line 43:

   $gflops = 1e-9/$hav->et_avg;

 

If the user hasn't returned a completed result, then there is no et_avg and
the user gets a divide by zero error at the top of the page.

 

My fix:

    if ($hav->et_avg > 0)

      $gflops = 1e-9/$hav->et_avg;

    else

      $gflops = 0;

 

 

Jon Sonntag

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to