summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-10-30 12:49:12 -0400
committerJoey Hess <joeyh@joeyh.name>2017-10-30 12:49:12 -0400
commit5b628493242860cdbec41a23e23bb561c96e4b40 (patch)
tree97eb3739ccb118c1d37085bd02c34d8990792add
parentd4592ac408f2086a3ed305c3fccf9107763e2be4 (diff)
downloadmoreutils-5b628493242860cdbec41a23e23bb561c96e4b40.tar.gz
else indent style fix
-rwxr-xr-xts9
1 files changed, 6 insertions, 3 deletions
diff --git a/ts b/ts
index 7f6992a..7134ea7 100755
--- a/ts
+++ b/ts
@@ -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);
}
}