[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #1863 [Tor Relay]: Relays should store observed bandwidth in state file
#1863: Relays should store observed bandwidth in state file
-----------------------+----------------------------------------------------
Reporter: mikeperry | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.2.x-final
Component: Tor Relay | Version: Tor: 0.2.2.x-final
Keywords: | Parent:
-----------------------+----------------------------------------------------
Comment(by mikeperry):
The minimal solution is to just save the value from
rep_hist_bandwidth_assess() into the state file periodically. Upon
startup, tor would read this value in and then fill read_array and
write_array with this value instead of zero as it does now.
This way, the value from the state file would stay the max for 24 hours
(until the read_array and write_array are filled with observed data and
wrap around), or until a new higher bandwidth observation is made,
whichever comes first.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1863#comment:3>
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