changeset 52:abcfe7739433

numer formatting and adding of isk in the alt text for all items
author df
date Tue, 03 Feb 2009 11:48:42 +0000
parents 229f009effc0
children 421e17de31af
files reproctool.cgi
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/reproctool.cgi	Tue Feb 03 11:36:56 2009 +0000
+++ b/reproctool.cgi	Tue Feb 03 11:48:42 2009 +0000
@@ -246,8 +246,13 @@
     my $isk = ($trit * $ttrit) + ($pyer * $tpyer) + ($mexa * $tmexa) +
               ($isog * $tisog) + ($nocx * $tnocx) + ($zydr * $tzydr) +
               ($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 );
+    my $repDetails = sprintf( "Trit=%s Py=%s Mex=%s Iso=%s Nocx=%s " .
+                              "Zyd=%s Mega=%s Morp=%s Isk=%s",
+                     pretty_numbers( $ttrit ), pretty_numbers( $tpyer ),
+                     pretty_numbers( $tmexa ), pretty_numbers( $tisog ),
+                     pretty_numbers( $tnocx ), pretty_numbers( $tzydr ),
+                     pretty_numbers( $tmega ), pretty_numbers( $tmorp ),
+                     pretty_numbers( $isk ) );
 
     # End statistics.
     $totalTrit += $ttrit; $totalPyer += $tpyer; $totalMexa += $tmexa;
@@ -368,7 +373,7 @@
             $text = pretty_numbers($item->{reprocessIsk});
         }
         
-        $alt .= " ($item->{reprocessDetails})";
+        $alt .= " ($item->{reprocessDetails}) (ISK)";
     }
     else
     {