Without this change locale settings can give "isn't numeric in numeric eq (==) " warnings on every request when the 0.00 point decimal is replaced with a comma.
Signed-off-by: John Napiorkowski <jjnapiork@cpan.org>
$c->log_response;
if ($c->use_stats) {
- my $elapsed = sprintf '%f', $c->stats->elapsed;
+ my $elapsed = $c->stats->elapsed;
my $av = $elapsed == 0 ? '??' : sprintf '%.3f', 1 / $elapsed;
$c->log->info(
"Request took ${elapsed}s ($av/s)\n" . $c->stats->report . "\n" );