<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>bytes / 1024 == kilobytes</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">hdd manufacturers use /1000 or /1000000 or /1000000000 to make it where they can market a 4TB drive that isnt really 4TB because they redefined what 4TB is<br><br>Sent from my iPhone</div><div><br>On Sep 7, 2017, at 17:09, Philippe Sultan <<a href="mailto:philippe.sultan@gmail.com">philippe.sultan@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi,<div><br></div><div>The bandwidth computation in the HTML5 JavaScript client in file html5/verto/js/src/jquery.jsonrpcclient.js, is :</div><div><br></div><div>var up_kps = (((this.speedBytes * 8) / (this.up_dur / 1000)) / 1024).toFixed(0);</div><div>var down_kps = (((this.speedBytes * 8) / (this.down_dur / 1000)) / 1024).toFixed(0);</div><div><p class="gmail-p1">this.speedBytes being the total number of transferred bytes, converted to bits after *8, I was wondering if the total shouldn't be divided by 1000 rather than 1024 in order to get a a result in kbits/s, that is :<br></p><p class="gmail-p1">var up_kps = (((this.speedBytes * 8) / (this.up_dur / 1000)) / 1000).toFixed(0);<br>var down_kps = (((this.speedBytes * 8) / (this.down_dur / 1000)) / 1000).toFixed(0);<br></p><p class="gmail-p1">Am I missing something here ? Thanks !</p></div><div><div><div class="gmail_signature">Philippe</div></div>
</div></div>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-dev mailing list</span><br><span><a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br></div></blockquote></body></html>