[tor-bugs] #20622 [Core Tor/Tor]: Unit abbreviations "TByte" and "TBytes" are unsupported
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Nov 9 18:02:29 UTC 2016
#20622: Unit abbreviations "TByte" and "TBytes" are unsupported
------------------------------+-----------------
Reporter: mnordhoff | Owner:
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
------------------------------+-----------------
Tor's configuration, for settings like `BandwidthRate`, supports unit
abbreviates like "`KB`", "`MByte`", and "`GBytes`".
For tera-, it supports "TB", and apparently "terabyte(s)", "terabit(s)"
and "TBit(s)", but not "`TByte`" or "`TBytes`".
The man page suggests that they should be supported, without quite
entirely saying so:
{{{
bytes|KBytes|MBytes|GBytes|KBits|MBits|GBits
}}}
{{{
The prefixes "tera" and "T" are also recognized.
}}}
Bug on c10faf50858943edafe042664b49f8a743df6d7c (r12936) in
0.2.0.14-alpha, i would say, when "KByte(s)", "MByte(s)" and "GByte(s)"
were introduced. ("`TB`" and "terabyte(s)" already existed.)
I have a (two-line) patch, but i have **NOT** checked that it works or
even compiles.
-- Peng
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20622>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list