Real-time statistics on relay bandwith in the network

The figure below shows the average bandwidth for a single peer during the past 3 hours.
When a peer is not actively relaying it counts as 0 KiBps to accurately reflect the true average network load.
Inspired by the Tor network metrics page.