Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
maybe there is no need for sprintf
  • Loading branch information
kraih committed Feb 10, 2016
1 parent 76a10ae commit 2d98637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -203,8 +203,8 @@ sub rendered {
# Disable auto rendering and stop timer
my $app = $self->render_later->app;
if (my $started = delete $stash->{'mojo.started'}) {
my $elapsed = sprintf '%f',
Time::HiRes::tv_interval($started, [Time::HiRes::gettimeofday()]);
my $elapsed
= Time::HiRes::tv_interval($started, [Time::HiRes::gettimeofday()]);
my $rps = $elapsed == 0 ? '??' : sprintf '%.3f', 1 / $elapsed;
my $code = $res->code;
my $msg = $res->message || $res->default_message($code);
Expand Down

0 comments on commit 2d98637

Please sign in to comment.