Skip to content

Commit

Permalink
Fixed: --random run of network-top and link-rate on MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
strizhechenko committed Jun 6, 2017
1 parent e961a09 commit ed106f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ build: clean
python setup.py sdist
python setup.py bdist_wheel

upload: clean
upload: test clean
python setup.py sdist upload
# python setup.py bdist_wheel upload

Expand Down
2 changes: 1 addition & 1 deletion netutils_linux_monitoring/link_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __indent__(column, value, maxvalue=0):
return "{0:<14}".format(value) if column == maxvalue else "{0:>11}".format(value)

def devices_list_validate(self, dev):
return path.isdir('/sys/class/net/{0}'.format(dev))
return self.options.random or path.isdir('/sys/class/net/{0}'.format(dev))

def devices_list_regex(self):
""" Returns list of network devices matching --device-regex """
Expand Down

0 comments on commit ed106f2

Please sign in to comment.