summaryrefslogtreecommitdiff
path: root/src/or/confparse.c
diff options
context:
space:
mode:
authorMatt Nordhoff <mnordhoff@mattnordhoff.com>2016-11-09 14:49:48 +0000
committerNick Mathewson <nickm@torproject.org>2016-11-10 09:13:27 -0500
commit7dee70c3e1e12389a15c6f5bb4e41c9adeaaf054 (patch)
treeb6dc079729ce1ece59042f9fecf69f176b3b7901 /src/or/confparse.c
parent0f4f63b7b8f1546f151ce92ec64b2cfc33b8598c (diff)
downloadtor-7dee70c3e1e12389a15c6f5bb4e41c9adeaaf054.tar.gz
tor-7dee70c3e1e12389a15c6f5bb4e41c9adeaaf054.zip
Add "TByte" and "TBytes" units; also add "TBits" to man page
Diffstat (limited to 'src/or/confparse.c')
-rw-r--r--src/or/confparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/confparse.c b/src/or/confparse.c
index ca54284dba..1706fa85e2 100644
--- a/src/or/confparse.c
+++ b/src/or/confparse.c
@@ -1224,6 +1224,8 @@ static struct unit_table_t memory_units[] = {
{ "gbits", 1<<27 },
{ "gbit", 1<<27 },
{ "tb", U64_LITERAL(1)<<40 },
+ { "tbyte", U64_LITERAL(1)<<40 },
+ { "tbytes", U64_LITERAL(1)<<40 },
{ "terabyte", U64_LITERAL(1)<<40 },
{ "terabytes", U64_LITERAL(1)<<40 },
{ "terabits", U64_LITERAL(1)<<37 },