You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sample 1000 Received 1252.6483312645523 kb/s
sample 5000 Received 250.9826604677602 kb/s
sample 1000 Received 1253.4795914675788 kb/s
sample 5000 Received 250.77318140432646 kb/s
sample 1000 Received 1244.4695225893756 kb/s
sample 5000 Received 250.59871011495855 kb/s
sample 1000 Received 1252.6885511615906 kb/s
sample 5000 Received 251.13570570135803 kb/s
I suggest changing the calculation of totalPerSecond to var totalPerSecond = total / (diffSeconds * 1000);
The text was updated successfully, but these errors were encountered:
This is most likely cause by dividing through the square of diffSeconds in lines
https://github.com/jub3i/node-net-stat/blob/master/index.js#L75
https://github.com/jub3i/node-net-stat/blob/master/index.js#L110
When running this test, the results differ by a factor of 5.
I suggest changing the calculation of totalPerSecond to
var totalPerSecond = total / (diffSeconds * 1000);
The text was updated successfully, but these errors were encountered: