inetLatency() Windows fix
This commit is contained in:
+1
-1
@@ -160,7 +160,7 @@ function inetLatency(host, callback) {
|
||||
let lines = stdout.toString().split('\r\n');
|
||||
lines.shift();
|
||||
lines.forEach(function (line) {
|
||||
if (line.toLowerCase().startsWith(' min')) {
|
||||
if (line.toLowerCase().indexOf('ms,') > -1) {
|
||||
let l = line.replace(/ +/g, ' ').split(' ');
|
||||
if (l.length > 8) {
|
||||
result = parseFloat(l[9]);
|
||||
|
||||
Reference in New Issue
Block a user