php - reverse/correct the web page calculation on orphans

This commit is contained in:
kanoi 2014-09-09 08:02:49 +10:00
parent 5e59102ba2
commit f4d47c3cb3

View File

@ -89,9 +89,9 @@ function doblocks($data, $user)
list($fg, $bg) = pctcolour($pct);
$bpct = "<font color=$fg>".number_format($pct, 2).'%</font>';
$bg = " bgcolor=$bg";
$nettot += $netdiff;
$blktot += $diffacc;
if ($stat != 'Orphan')
$blktot += $diffacc;
$nettot += $netdiff;
}
else
{