[tor-bugs] #961 [Tor]: TotalTraffic option (upload+download)

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Sep 5 14:17:11 UTC 2014


#961: TotalTraffic option (upload+download)
-----------------------------+---------------------------------------
     Reporter:  Athaba       |      Owner:
         Type:  enhancement  |     Status:  needs_revision
     Priority:  minor        |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor          |    Version:  0.2.0.31
   Resolution:  None         |   Keywords:  accounting easy tor-relay
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+---------------------------------------
Changes (by nickm):

 * status:  needs_review => needs_revision


Comment:

 Thanks for the patch!  Some quick comments:

  * Instead of doing `log_info(LD_GENERAL, "Weird AccountingRule given,
 defaulting to 'max'");` inside check_reached_limit(), we should probably
 check that AccountingRule is either "max" or "sum" inside options_validate
 in config.c.
  * We should document AccountingRule in doc/tor.1.txt
  * The type of the "limit" needs to be uint64_t, which can be larger than
 'int'
  * I think the calculation in update_expected_bandwidth_usage might need
 to be different for this case too, perhaps.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/961#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list