summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-10 08:18:15 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-10 09:25:28 -0400
commit11da5229d103fd13300b88a0efbc1da0b3970782 (patch)
treef814c64cbf999c925726713a7da023d809359cc1 /src/app
parentc5eb601e60760eb56d41ec08970cb151511bf2ea (diff)
downloadtor-11da5229d103fd13300b88a0efbc1da0b3970782.tar.gz
tor-11da5229d103fd13300b88a0efbc1da0b3970782.zip
Refactor bwhist_get_bandwidth_lines()
We've done a lot to improve our internal APIs since we wrote this code, and it shows. We can just use a buf_t to build up the bandwidth lines, and save a bunch of stack fiddling. Additionally, we can use a function to format a single line, and thereby get rid of the cheezy pattern that does for (i=0;i<n;++i) { switch (i) { ... } ... }
Diffstat (limited to 'src/app')
0 files changed, 0 insertions, 0 deletions