networkInterfaces() speed bug (windows)
This commit is contained in:
+1
-1
@@ -163,7 +163,7 @@ function parseLinesWindowsNics(sections) {
|
||||
let lines = sections[i].trim().split('\r\n');
|
||||
let netEnabled = util.getValue(lines, 'NetEnabled', '=');
|
||||
if (netEnabled) {
|
||||
const speed = parseInt(util.getValue(lines, 'speed', '=').trim(), 10);
|
||||
const speed = parseInt(util.getValue(lines, 'speed', '=').trim(), 10) / 1000000;
|
||||
nics.push({
|
||||
mac: util.getValue(lines, 'MACAddress', '=').toLowerCase(),
|
||||
name: util.getValue(lines, 'Name', '=').replace(/\]/g, ')').replace(/\[/g, '('),
|
||||
|
||||
Reference in New Issue
Block a user