aboutsummaryrefslogtreecommitdiff
path: root/uxd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-23 15:51:41 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-23 15:51:41 -0500
commite739d2ccb7a7b488b7dcc15313b0ffaedd8c0a77 (patch)
treebdb41f736d7becc99016497d0bd7cc8734f21fe6 /uxd.c
parent734994ddaf7522f9d763cacc0f7cde63b9c7188a (diff)
downloaduxd-e739d2ccb7a7b488b7dcc15313b0ffaedd8c0a77.tar.gz
add T/t (terabytes) for numeric options
Diffstat (limited to 'uxd.c')
-rw-r--r--uxd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uxd.c b/uxd.c
index 109cbf8..9e402dc 100644
--- a/uxd.c
+++ b/uxd.c
@@ -254,9 +254,11 @@ long parse_number(int opt, const char *s) {
case 'k': result *= 1024L; break;
case 'm': result *= 1048576L; break;
case 'g': result *= 1073741824L; break;
+ case 't': result *= 1099511627776L; break;
case 'K': result *= 1000L; break;
case 'M': result *= 1000000L; break;
case 'G': result *= 1000000000L; break;
+ case 'T': result *= 1000000000000L; break;
default:
number_err(opt);
}