Skip to content
Browse files

modified "parseInt(o.bw/1024)" to "parseInt(o.bw/1024*8)" because we …

…want to translate Bytes/sec to Kilobit/sec
  • Loading branch information...
1 parent e6cf1e8 commit b5618d57d12266e369908697cdbd8f2199af5d2d @dweitemeyer dweitemeyer committed Jan 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/howtos/howtos.js
View
2 doc/howtos/howtos.js
@@ -10,7 +10,7 @@ BOOMR.subscribe('before_beacon', function(o) {
html += "&nbsp;&nbsp;&nbsp;" + t_other[i] + " ms<br>";
}
}
- if(o.bw) { html += "Your bandwidth to this server is " + parseInt(o.bw/1024) + "kbps (&#x00b1;" + parseInt(o.bw_err*100/o.bw) + "%)<br>"; }
+ if(o.bw) { html += "Your bandwidth to this server is " + parseInt(o.bw/1024*8) + "kbps (&#x00b1;" + parseInt(o.bw_err*100/o.bw) + "%)<br>"; }
if(o.lat) { html += "Your latency to this server is " + parseInt(o.lat) + "&#x00b1;" + o.lat_err + "ms<br>"; }
var r = document.getElementById('results');

0 comments on commit b5618d5

Please sign in to comment.
Something went wrong with that request. Please try again.