From 906b1b75b2481396c25559d15b153ae4927498fc Mon Sep 17 00:00:00 2001 From: Oleg Strizhechenko Date: Tue, 11 Jul 2017 12:24:14 +0500 Subject: [PATCH 1/2] Create CONTRIBUTING.md --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..6a4a48f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1 @@ +I'm very welcome any help with this project. I'm usually place label [help wanted](https://github.com/strizhechenko/netutils-linux/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) to tasks that may be a good start to contribute. From 9bccb3833574e6ec3552015aad5800ca771521c4 Mon Sep 17 00:00:00 2001 From: Oleg Strizhechenko Date: Tue, 11 Jul 2017 14:12:31 +0500 Subject: [PATCH 2/2] Fixed: link-rate --simple options didn't work. https://github.com/strizhechenko/netutils-linux/issues/130 --- netutils_linux_monitoring/link_rate.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/netutils_linux_monitoring/link_rate.py b/netutils_linux_monitoring/link_rate.py index f5e886c..ad15a3b 100644 --- a/netutils_linux_monitoring/link_rate.py +++ b/netutils_linux_monitoring/link_rate.py @@ -146,9 +146,9 @@ def post_optparse(self): self.stats = [ stat for stat in self.stats if stat.filename.startswith('rx')] if self.options.simple_mode: - simple_stats = ('packets', 'bytes', 'errors') + simple_stats = ('rx_packets', 'rx_bytes', 'rx_errors', 'tx_packets', 'tx_bytes', 'tx_errors') self.stats = [ - stat for stat in self.stats if stat.shortname in simple_stats] + stat for stat in self.stats if stat.filename in simple_stats] self.unit_change() self.header = self.make_header() self.align_map = ['l'] + ['r'] * (len(self.header) - 1) diff --git a/setup.py b/setup.py index 4c26d88..ab091ca 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def read(*paths): setuptools.setup( name='netutils-linux', - version='2.2.2', + version='2.2.4', author='Oleg Strizhechenko', author_email='oleg.strizhechenko@gmail.com', license='MIT',