aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-11 00:06:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-11 00:06:41 +1300
commit78bced0fc95c85cf26ef5e77fb8b64a0256f7d22 (patch)
tree03b6f87baac9ff66e92b0b9cb4bd3ddfec70204f /bin
parentCondense conditions for rfct(1df) (diff)
downloaddotfiles-78bced0fc95c85cf26ef5e77fb8b64a0256f7d22.tar.gz
dotfiles-78bced0fc95c85cf26ef5e77fb8b64a0256f7d22.zip
Remove superfluous calls to next in sec(1df)
Diffstat (limited to 'bin')
-rw-r--r--bin/sec.awk3
1 files changed, 0 insertions, 3 deletions
diff --git a/bin/sec.awk b/bin/sec.awk
index 872a0bcf..cac40cb9 100644
--- a/bin/sec.awk
+++ b/bin/sec.awk
@@ -14,19 +14,16 @@ BEGIN { FS = ":0*" }
# Match hh:mm:ss
NF == 3 {
printf "%u\n", $1 * 3600 + $2 * 60 + $3
- next
}
# Match mm:ss
NF == 2 {
printf "%u\n", $1 * 60 + $2
- next
}
# Match ss (in which case all we've done is strip zeroes)
NF == 1 {
printf "%u\n", $1
- next
}
# Done, exit 1 if we had any errors on the way