Removed unnecessary sprintf in debug mode that caused warnings on locales where comma...
Andy Grundman [Wed, 10 Oct 2007 15:41:18 +0000 (15:41 +0000)]
Changes
lib/Catalyst.pm

diff --git a/Changes b/Changes
index abb5069..77b95c9 100644 (file)
--- a/Changes
+++ b/Changes
@@ -13,6 +13,8 @@
           (Gavin Henry, Tatsuhiko Miyagawa)
         - Fixed bug where req->base and req->uri would include a port number when running
           in SSL mode.
+        - Removed unnecessary sprintf in debug mode that caused warnings on locales where
+          commas are used for decimal markers.
 
 5.7010  2007-08-22 07:41:00
         - Resource forks in 5.7009
index 0e9ebc2..53cf386 100644 (file)
@@ -1353,7 +1353,7 @@ sub finalize {
     }
     
     if ($c->debug) {
-        my $elapsed = sprintf '%f', tv_interval($c->stats->getNodeValue);
+        my $elapsed = tv_interval($c->stats->getNodeValue);
         my $av = $elapsed == 0 ? '??' : sprintf '%.3f', 1 / $elapsed;
         
         my $t = Text::SimpleTable->new( [ 62, 'Action' ], [ 9, 'Time' ] );