diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-10-30 12:51:58 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-10-30 12:51:58 -0400 |
commit | 52e35719dc334da747c543f0da8f2fd0e537b2c6 (patch) | |
tree | 97b9f4625f2f1d0d116b9b14d2ccbe5ed15e2654 | |
parent | 96809417fcceb13c83caa6b16d8174ea209bce27 (diff) | |
download | moreutils-52e35719dc334da747c543f0da8f2fd0e537b2c6.tar.gz |
else indent style fix
-rwxr-xr-x | ts | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -91,9 +91,11 @@ if ($mono) { my $raw_time = Time::HiRes::clock_gettime(CLOCK_MONOTONIC); $lastseconds = int($raw_time); $lastmicroseconds = int(1000000 * ($raw_time - $lastseconds)); -} elsif ($hires) { +} +elsif ($hires) { ($lastseconds, $lastmicroseconds) = Time::HiRes::gettimeofday(); -} else { +} +else { $lastseconds = time; } @@ -109,7 +111,8 @@ while (<>) { Time::HiRes::clock_gettime(CLOCK_MONOTONIC); $seconds = int($raw_time); $microseconds = int(1000000 * ($raw_time - $seconds)); - } else { + } + else { ($seconds, $microseconds) = Time::HiRes::gettimeofday(); } @@ -139,7 +142,8 @@ while (<>) { $lastseconds = $seconds; } print strftime($format, localtime($deltaseconds)); - } else { + } + else { print strftime($format, localtime); } } |