summaryrefslogtreecommitdiff
path: root/utils/convenience
diff options
context:
space:
mode:
authorZoRo <dos21h@gmail.com>2022-02-18 20:33:58 +0000
committerZoRo <dos21h@gmail.com>2022-02-18 20:33:58 +0000
commitd696ea3a6d640cd96a1ba2ac39bdc51d7f884e1d (patch)
tree0f10ba2174be3335d75b63975b2b2c0795a8aa2a /utils/convenience
parentf8b84cf48099fb020b1174c8cc6195dde42308c3 (diff)
downloadr820t-d696ea3a6d640cd96a1ba2ac39bdc51d7f884e1d.tar.gz
r820t-d696ea3a6d640cd96a1ba2ac39bdc51d7f884e1d.zip
Update to latest
Diffstat (limited to 'utils/convenience')
-rw-r--r--utils/convenience/convenience.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/convenience/convenience.c b/utils/convenience/convenience.c
index 517dc4e..00cc2cc 100644
--- a/utils/convenience/convenience.c
+++ b/utils/convenience/convenience.c
@@ -49,9 +49,11 @@ double atofs(char *s)
case 'g':
case 'G':
suff *= 1e3;
+ /* fall-through */
case 'm':
case 'M':
suff *= 1e3;
+ /* fall-through */
case 'k':
case 'K':
suff *= 1e3;
@@ -76,9 +78,11 @@ double atoft(char *s)
case 'h':
case 'H':
suff *= 60;
+ /* fall-through */
case 'm':
case 'M':
suff *= 60;
+ /* fall-through */
case 's':
case 'S':
suff *= atof(s);