summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-10-30 12:51:58 -0400
committerJoey Hess <joeyh@joeyh.name>2017-10-30 12:51:58 -0400
commit52e35719dc334da747c543f0da8f2fd0e537b2c6 (patch)
tree97b9f4625f2f1d0d116b9b14d2ccbe5ed15e2654
parent96809417fcceb13c83caa6b16d8174ea209bce27 (diff)
downloadmoreutils-52e35719dc334da747c543f0da8f2fd0e537b2c6.tar.gz
else indent style fix
-rwxr-xr-xts12
1 files changed, 8 insertions, 4 deletions
diff --git a/ts b/ts
index 7f6ff85..405446a 100755
--- a/ts
+++ b/ts
@@ -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);
}
}