diff --git a/lib/airport.js b/lib/airport.js index 739d449..da25aef 100644 --- a/lib/airport.js +++ b/lib/airport.js @@ -30,7 +30,7 @@ function parseOutput(str, callback) { 'ssid' : lines[i].substr(0, macStart).trim(), 'mac' : elements[0].trim(), 'channel' : parseInt(elements[2].trim(), 10), - 'rssi' : parseInt(elements[1].trim()) + 'rssi' : parseInt(elements[1].trim(), 10) }); } } diff --git a/lib/netsh.js b/lib/netsh.js index 0c0c753..06e8a35 100644 --- a/lib/netsh.js +++ b/lib/netsh.js @@ -71,7 +71,7 @@ function parseOutput(str, callback) { // A tricky one: the channel is the first one having just ONE number. Set only // if the channel is not already set ("Basic Rates" can be a single number also) if (regexChannel.exec(lines[t].trim())) { - network.channel = parseInt(lines[t].split(':')[1].trim()); + network.channel = parseInt(lines[t].split(':')[1].trim(), 10); } } }