Browse Source

Remove any elements form list if not split at 4

Interesting data in issue #23
windows^2
Florian N 12 years ago
parent
commit
0f036a5227
  1. 3
      main/views.py

3
main/views.py

@ -310,7 +310,8 @@ def get_netstat():
pipe.close()
data = [i.split(None, 4) for i in data]
data[:] = [e for e in data if len(e) == 4]
except Exception, err:
data = str(err)

Loading…
Cancel
Save