Changed stats reporting to not use local/remote

BUG=

Review URL: https://webrtc-codereview.appspot.com/1216004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3688 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hta@webrtc.org 2013-03-19 08:45:47 +00:00
parent 31829a7baf
commit ecfd32880e

View File

@ -125,17 +125,21 @@ var statCollector = setInterval(function() {
log('Raw results ' + results);
for (var i = 0; i < results.length; ++i) {
var res = results[i];
log(i + ': ' + JSON.stringify(res));
statsString += '<h3>Report ';
statsString += i;
statsString += '</h3>';
if (res.local) {
statsString += "<p>Local ";
statsString += dumpStats(res.local);
}
if (res.remote) {
statsString += "<p>Remote ";
statsString += dumpStats(res.remote);
if (!res.local || res.local === res) {
statsString += dumpStats(res);
} else {
// Pre-227.0.1445 (188719) browser
if (res.local) {
statsString += "<p>Local ";
statsString += dumpStats(res.local);
}
if (res.remote) {
statsString += "<p>Remote ";
statsString += dumpStats(res.remote);
}
}
}
$('stats').innerHTML = statsString;