From ff4c360e27dce112dbcadddbced552482ad3abab Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 4 Apr 2016 21:15:49 -0400 Subject: [PATCH] fixed display bug in bw statistics graph --- retroshare-gui/src/gui/statistics/BWGraph.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/statistics/BWGraph.cpp b/retroshare-gui/src/gui/statistics/BWGraph.cpp index 3ec24071f..2f352aa85 100644 --- a/retroshare-gui/src/gui/statistics/BWGraph.cpp +++ b/retroshare-gui/src/gui/statistics/BWGraph.cpp @@ -63,7 +63,11 @@ void BWGraphSource::update() // now, convert data to current curve points. std::map vals ; - convertTrafficClueToValues(thc.out_rstcl,vals) ; + + if(_current_direction == BWGraphSource::DIRECTION_UP) + convertTrafficClueToValues(thc.out_rstcl,vals) ; + else + convertTrafficClueToValues(thc.in_rstcl,vals) ; qint64 ms = getTime() ;