Hallo,
TOR unterstützt Traffic-Begrenzung. Kann man irgendwie auslesen, wieviel Traffic er bereits verbraucht hat? Ich vermute, man müsste BWHistoryWriteValues und BWHistoryReadValues aus /var/lib/tor/state aufaddieren? Gibt's da auch eine fertige Funktion dazu?
Danke.
Stichwörter für Suche: Onion Router, TOR
Tor: Accounting?
Re: Tor: Accounting?
Demnach liegst Du richtig mit Deiner Vermutung. Das Addieren der beiden Werte sollte ja kein Problem sein...https://www.torproject.org/tor-manual.html.en wrote: DataDirectory/state
A set of persistent key-value mappings. These are documented in the file. These include:
- The current entry guards and their status.
- The current bandwidth accounting values (unused so far; see below).
- When the file was last written
- What version of Tor generated the state file
- A short history of bandwidth usage, as produced in the router descriptors.
DataDirectory/bw_accounting
Used to track bandwidth accounting values (when the current period starts and ends; how much has been read and written so far this period). This file is obsolete, and the data is now stored in the 'state' file as well. Only used when bandwidth accounting is enabled.
Last edited by Joe User on 2010-01-20 20:58, edited 1 time in total.
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Re: Tor: Accounting?
Ok. Ich dachte vielleicht hat sich jemand schon ein elegantes Auswerte-Script, auch über mehrere Perioden, geschrieben. Wenn nicht werde ich das mal machen...
