Previous Thread
Next Thread
Print Thread
#3254 05/23/18 01:07 PM
Joined: May 2018
Posts: 1

Joined: May 2018
Posts: 1
There is a bug in the MOS scoring. In moscolumn.js you are using the line:

var percentPacketLoss = LostPacketCount / TotalPacketCount;

which yields a value between 0 and 1. The algorithm you coded actually requires the value be between 0 and 100. Why they wrote it this way is beyond me, but the proper line would be:

var percentPacketLoss = (LostPacketCount / TotalPacketCount) * 100;

I injected up to 20% packet loss stepping up by 1% and the MOS score never dropped below 4.37 with the code you are using. Please correct and send out asap. The correction makes it come out correctly at a MOS score of 2.10

Joined: Oct 2017
Posts: 90
Pingman Staff
Pingman Staff

Joined: Oct 2017
Posts: 90
Hey Tim,

Thanks for putting this up! We've got a dev editing that line, and it'll be fixed in the next release for sure. For now, I'd recommend leaving the change you made - but after version 5.5.12, this will be fixed!

Thanks again!


Link Copied to Clipboard
Forum Search
Who's Online Now
1 members (zeth07), 32 guests, and 2 robots.
Key: Admin, Global Mod, Mod
Powered by UBB.threads™ PHP Forum Software 8.0.1