Unfortunately the state doesn't provide a complete bandwidth history - if you check on line 1168 of src/or/rephist.c you'll see:<br><br>/** How many bandwidth usage intervals do we remember? (derived) */<br>#define NUM_TOTALS (NUM_SECS_BW_SUM_IS_VALID/NUM_SECS_BW_SUM_INTERVAL)<br>
<br>This is used later when writing to the state (line 1441 of the same file) - honestly I'm green enough with C that I got lost pretty quick once it started juggling smart lists and buffers around but I'll take the comments at their word ;)<br>
<br>This is why I don't use it to populate past bandwidth data in arm. Cheers! -Damian<br><br><div class="gmail_quote">On Sun, Mar 7, 2010 at 3:16 AM, Paul Menzel <span dir="ltr"><<a href="mailto:paulepanter@users.sourceforge.net">paulepanter@users.sourceforge.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Am Freitag, den 05.03.2010, 23:54 +0100 schrieb Paul Menzel:<br>
<div class="im">> Am Freitag, den 05.03.2010, 10:17 -0500 schrieb <a href="mailto:andrew@torproject.org">andrew@torproject.org</a>:<br>
> > On Fri, Mar 05, 2010 at 09:32:59AM +0100, <a href="mailto:paulepanter@users.sourceforge.net">paulepanter@users.sourceforge.net</a> wrote 1.4K bytes in 39 lines about:<br>
> > : > What did you configure for your bandwidth limits or accountingmax?<br>
> > :<br>
> > : I did not configure them and so the defaults are used. arm is displaying<br>
> > : »(cap: 5 MB, burst: 10 MB)«.<br>
> ><br>
> > Ok, then Tor will figure out how much bandwidth it can reliably provide.<br>
><br>
> On what conditions does that depend?<br>
><br>
> > If you look at your (datadirectory)/state file, it will show you how<br>
> > much bandwidth tor has been providing over time.<br>
><br>
> I guess arm is using this or something similar to display the bandwidth<br>
> usage of Tor.<br>
<br>
</div>On average arm’s values are the same as the ones in<br>
`(datadirectory)/state`.<br>
<br>
[…]<br>
<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Paul<br>
</font></blockquote></div><br>