diff options
author | B. Watson <urchlay@slackware.uk> | 2024-12-23 15:51:41 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-12-23 15:51:41 -0500 |
commit | e739d2ccb7a7b488b7dcc15313b0ffaedd8c0a77 (patch) | |
tree | bdb41f736d7becc99016497d0bd7cc8734f21fe6 /uxd.c | |
parent | 734994ddaf7522f9d763cacc0f7cde63b9c7188a (diff) | |
download | uxd-e739d2ccb7a7b488b7dcc15313b0ffaedd8c0a77.tar.gz |
add T/t (terabytes) for numeric options
Diffstat (limited to 'uxd.c')
-rw-r--r-- | uxd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |