[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] Re: [Tor Bug Tracker & Wiki] #1511: Accounting Resets when System Timezone Changes
#1511: Accounting Resets when System Timezone Changes
----------------------------+-----------------------------------------------
Reporter: BarkerJr | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor-Tor server | Version: Tor: 0.2.2.13-alpha
Keywords: |
----------------------------+-----------------------------------------------
Comment(by nickm):
On further investigation, the culprit code is probably the logic in
configure_accounting() that resets the accounting period if the start of
the current accounting period is not the same as what it was before.
It's not totally clear what to do in this case. If the start of the
accounting period moves _back_ in time, then it's probably okay to
remember the bytes we already wrote. But what should we do if it moves
forward in time, yet still overlaps with the previous accounting period?
(Ignore for now the fact that we don't record when the old period was
supposed to end.)
One easy fix would be to add some way to specify that accounting periods
are to be taken relative to UTC rather than local time, but that leaves
the major issue unaddressed.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1511#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online