Skip to content

Commit

Permalink
changed regex to match interface name like enp0s31f6 without leading …
Browse files Browse the repository at this point in the history
…blanks
  • Loading branch information
root committed Aug 30, 2016
1 parent b874ace commit 7f2872d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collectors/0/ifstat.py
Expand Up @@ -57,7 +57,7 @@ def main():
ts = int(time.time())
for line in f_netdev:
m = re.match(r'''
\s+
\s*
(
eth?\d+ |
em\d+_\d+/\d+ | em\d+_\d+ | em\d+ |
Expand Down

0 comments on commit 7f2872d

Please sign in to comment.