Don't report empty bw-history lines in extrainfo
commitc1927d7d5f5dff5b8d7da5bd4e7a743eb06bcbb3
authorSebastian Hahn <sebastian@torproject.org>
Sat, 16 Apr 2011 14:01:36 +0000 (16 16:01 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 19 Apr 2011 12:51:40 +0000 (19 14:51 +0200)
tree9f98c833a3e901c999301767805d515524aed840
parent4cbbb92e7fc7c9c4d374b35211c216a5419e3da2
Don't report empty bw-history lines in extrainfo

Some tor relays would report lines like these in their extrainfo
documents:
dirreq-write-history 2011-03-14 16:46:44 (900 s)

This was confusing to some people who look at the stats. It would happen
whenever a relay first starts up, or when a relay has dirport disabled.
Change this so that lines without actual bw entries are omitted.
Implements ticket 2497.
changes/ticket2497 [new file with mode: 0644]
src/or/rephist.c