# HG changeset patch # User df # Date 1233005272 0 # Node ID 30bbda81f13b5de63899c44d8ccebd657f581869 # Parent bb8e080b25da9edc4947b54551c29f7fe341ff00 Quick statatistic adding and some small text changes. diff -r bb8e080b25da -r 30bbda81f13b reproctool.cgi --- a/reproctool.cgi Sun Jan 25 22:34:22 2009 +0000 +++ b/reproctool.cgi Mon Jan 26 21:27:52 2009 +0000 @@ -224,6 +224,11 @@ END my $pre_reprocess = $db->prepare($sql_reprocess); +# Global statistical vars +my ($totalTrit, $totalPyer, $totalMexa, $totalIsog, $totalNocx, $totalZydr, + $totalMega, $totalMorp, $totalIsk, $meta0, $meta1, $meta2, $meta3, $meta4, + $meta5, $meta6Plus ); + # Execute, bring back one row per item my ($tid, $tname, $gname, $meta, $basePrice, $icon, $ttrit, $tpyer, $tmexa, $tisog, $tnocx, $tzydr, $tmega, $tmorp); @@ -243,6 +248,11 @@ ($mega * $tmega) + ($morp * $tmorp); my $repDetails = sprintf( "Trit=%d Py=%d Mex=%d Iso=%d Nocx=%d Zyd=%d Mega=%d Morp=%d", $ttrit, $tpyer, $tmexa, $tisog, $tnocx, $tzydr, $tmega, $tmorp ); + + # End statistics. + $totalTrit += $ttrit; $totalPyer += $tpyer; $totalMexa += $tmexa; + $totalIsog += $tisog; $totalNocx += $tnocx; $totalZydr += $tzydr; + $totalMega += $tmega; $totalMorp += $tmorp; $totalIsk += $isk; $meta = 0 unless defined $meta; $item = { id => $tid, name => $tname, meta => $meta, icon => $icon, @@ -270,8 +280,7 @@ -Welcome to the sell, reprocess or keep tool. :) -

+

Results

Here is how it works, the colour coding: