diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-10-30 12:49:12 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-10-30 12:49:12 -0400 |
commit | 5b628493242860cdbec41a23e23bb561c96e4b40 (patch) | |
tree | 97eb3739ccb118c1d37085bd02c34d8990792add | |
parent | d4592ac408f2086a3ed305c3fccf9107763e2be4 (diff) | |
download | moreutils-5b628493242860cdbec41a23e23bb561c96e4b40.tar.gz |
else indent style fix
-rwxr-xr-x | ts | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -92,7 +92,8 @@ if ($mono) { Time::HiRes::clock_gettime(CLOCK_MONOTONIC); } elsif ($hires) { ($lastseconds, $lastmicroseconds) = Time::HiRes::gettimeofday(); -} else { +} +else { $lastseconds = time; } @@ -108,7 +109,8 @@ while (<>) { $seconds = int($raw_time); $microseconds = $raw_time - $seconds; print "$raw_time $seconds $microseconds\n"; - } else { + } + else { ($seconds, $microseconds) = Time::HiRes::gettimeofday(); } if ($inc || $sincestart) { @@ -137,7 +139,8 @@ while (<>) { $lastseconds = $seconds; } print strftime($format, localtime($deltaseconds)); - } else { + } + else { print strftime($format, localtime); } } |