From: Andy Grundman Date: Wed, 10 Oct 2007 15:41:18 +0000 (+0000) Subject: Removed unnecessary sprintf in debug mode that caused warnings on locales where comma... X-Git-Tag: 5.7099_04~129 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=228f9466174380edff95b369034a04fd4b9cbb82 Removed unnecessary sprintf in debug mode that caused warnings on locales where commas are used for decimal markers. --- diff --git a/Changes b/Changes index abb5069..77b95c9 100644 --- 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 diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 0e9ebc2..53cf386 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -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' ] );