diff --git a/interface/src/ui/Stats.cpp b/interface/src/ui/Stats.cpp index b271891ed9..dd179cc7c0 100644 --- a/interface/src/ui/Stats.cpp +++ b/interface/src/ui/Stats.cpp @@ -315,6 +315,11 @@ void Stats::display( verticalOffset = 0; horizontalOffset = _lastHorizontalOffset + _generalStatsWidth + 1; + if (columnOneWidth == _generalStatsWidth) { + drawBackground(backgroundColor, horizontalOffset, 0, _bandwidthStatsWidth, lines * STATS_PELS_PER_LINE + 10); + } + horizontalOffset += 5; + char packetsPerSecondString[30]; sprintf(packetsPerSecondString, "Packets In/Out: %d/%d", inPacketsPerSecond, outPacketsPerSecond); char averageMegabitsPerSecond[30]; diff --git a/libraries/networking/src/BandwidthRecorder.cpp b/libraries/networking/src/BandwidthRecorder.cpp index f03aaa4150..bb7a0c2188 100644 --- a/libraries/networking/src/BandwidthRecorder.cpp +++ b/libraries/networking/src/BandwidthRecorder.cpp @@ -11,7 +11,6 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // -#include #include #include "BandwidthRecorder.h" @@ -53,17 +52,18 @@ void BandwidthRecorder::Channel::updateOutputAverage(const float sample) { } BandwidthRecorder::BandwidthRecorder() { - for (uint i=0; i