[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #20622 [Core Tor/Tor]: Unit abbreviations "TByte" and "TBytes" are unsupported



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs