mirror of
https://github.com/RetroShare/RetroShare.git
synced 2026-09-14 11:06:01 +05:00
Fix: integrate upstream rsRtt->getPongResults() check to avoid conflict
This commit is contained in:
parent
593efd723f
commit
7500d8f8b4
@ -223,8 +223,7 @@ void RttGraphSource::getValues(std::map<std::string,float>& vals) const
|
||||
|
||||
for(std::list<RsPeerId>::const_iterator it(idList.begin());it!=idList.end();++it)
|
||||
{
|
||||
rsRtt->getPongResults(*it, 1, results);
|
||||
if(!results.empty()) {
|
||||
if (rsRtt->getPongResults(*it, 1, results) > 0 && !results.empty()) {
|
||||
vals[(*it).toStdString()] = results.back().mRTT ;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user