summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-12-20 21:30:46 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-12-20 21:31:36 -0500
commit11e8c667f62ef3a1a0b099013352ba6053595142 (patch)
treeec42e4bac4084c73b1fca3748b3300b00af40682 /eval.c
parent0609e6f29719a7e88b8233d6bd5b75509a2d59f5 (diff)
downloadbfs-11e8c667f62ef3a1a0b099013352ba6053595142.tar.xz
Add tera and peta suffices for -size
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 2497455..b260ad9 100644
--- a/eval.c
+++ b/eval.c
@@ -808,8 +808,10 @@ bool eval_size(const struct expr *expr, struct eval_state *state) {
[SIZE_BYTES] = 1,
[SIZE_WORDS] = 2,
[SIZE_KB] = 1024,
- [SIZE_MB] = 1024*1024,
- [SIZE_GB] = 1024*1024*1024,
+ [SIZE_MB] = 1024LL*1024,
+ [SIZE_GB] = 1024LL*1024*1024,
+ [SIZE_TB] = 1024LL*1024*1024*1024,
+ [SIZE_PB] = 1024LL*1024*1024*1024*1024,
};
off_t scale = scales[expr->size_unit];