I’m getting the following error from the size_census.php code.

Warning: Division by zero in /mnt/disk0/projects/pogs/html/ops/size_census.php 
on line 59
PHP Warning:  Division by zero in 
/mnt/disk0/projects/pogs/html/ops/size_census.php on line 59

The code is as follows:

48    while ($x = _mysql_fetch_object($result)) {
49        if (is_gpu($x->plan_class)) {
50            $av = $x->on_frac;
51            if ($x->gpu_active_frac) {
52                $av *= $x->gpu_active_frac;
53            } else {
54                $av *= $x->active_frac;
55            }
56        } else {
57           $av = $x->on_frac * $x->active_frac;
58        }
59        $a[] = (1/$x->et_avg) * $av;
60    }

A quick check of the database shows I do indeed have values of et_avg that are 
equal to 0


Regards
Kevin



_______________________________________________
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