fixed display bug in bw statistics graph

This commit is contained in:
csoler 2016-04-04 21:15:49 -04:00
parent b206317442
commit ff4c360e27

View File

@ -63,7 +63,11 @@ void BWGraphSource::update()
// now, convert data to current curve points.
std::map<std::string,float> 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() ;