node-os-utils 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/netstat.js +2 -2
  2. package/package.json +1 -1
package/lib/netstat.js CHANGED
@@ -106,7 +106,7 @@ bucket.netstat = {
106
106
  if(bucket.isNotSupported(out)) return ifconfigStats()
107
107
 
108
108
  var names = new RegExp(/[0-9]+: ([\S]+): /g)
109
- var RX = new RegExp(/ {4}RX: bytes {2}packets {2}errors {2}dropped overrun mcast\s*\n\s*([0-9]+) /gm)
109
+ var RX = new RegExp(/ {4}RX: bytes {2}packets {2}errors {2}dropped (overrun|missed) {1,2}mcast\s*\n\s*([0-9]+) /gm)
110
110
  var TX = new RegExp(/ {4}TX: bytes {2}packets {2}errors {2}dropped carrier collsns\s*\n\s*([0-9]+) /g)
111
111
 
112
112
  var stats = []
@@ -121,7 +121,7 @@ bucket.netstat = {
121
121
 
122
122
  i = 0
123
123
  while ((res = RX.exec(out)) !== null) {
124
- stats[i++].inputBytes = res[1]
124
+ stats[i++].inputBytes = res[2]
125
125
  }
126
126
 
127
127
  i = 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-os-utils",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "An operating system utility library.",
5
5
  "main": "index.js",
6
6
  "scripts": {