[iproute] Fix lnstat -i properly this time

Petr Šabata psabata at fedoraproject.org
Fri Aug 30 09:11:07 UTC 2013


commit 75a18d71b832d88f6bcbc5206f57daa236bcb9e5
Author: Petr Šabata <contyk at redhat.com>
Date:   Fri Aug 30 11:10:40 2013 +0200

    Fix lnstat -i properly this time

 iproute.spec                          |    5 ++++-
 iproute2-3.10.0-lnstat-interval.patch |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/iproute.spec b/iproute.spec
index 2ff89b6..0c3e487 100644
--- a/iproute.spec
+++ b/iproute.spec
@@ -2,7 +2,7 @@
 Summary:            Advanced IP routing and network device configuration tools
 Name:               iproute
 Version:            3.10.0
-Release:            5%{?dist}
+Release:            6%{?dist}
 Group:              Applications/System
 URL:                http://kernel.org/pub/linux/utils/net/%{name}2/
 Source0:            http://kernel.org/pub/linux/utils/net/%{name}2/%{name}2-%{version}.tar.gz
@@ -175,6 +175,9 @@ done
 %{_includedir}/libnetlink.h
 
 %changelog
+* Fri Aug 30 2013 Petr Šabata <contyk at redhat.com> - 3.10.0-6
+- Fix lnstat -i properly this time
+
 * Thu Aug 29 2013 Petr Šabata <contyk at redhat.com> - 3.10.0-5
 - Fix an 'ip link' hang (#996537)
 
diff --git a/iproute2-3.10.0-lnstat-interval.patch b/iproute2-3.10.0-lnstat-interval.patch
index 9950183..d2ea1a0 100644
--- a/iproute2-3.10.0-lnstat-interval.patch
+++ b/iproute2-3.10.0-lnstat-interval.patch
@@ -23,7 +23,7 @@ index dca10ad..2889e5e 100644
  			print_line(stdout, lnstat_files, &fp);
  			fflush(stdout);
  			sleep(interval);
-+			if (!count) ++i;
++			if (count) ++i;
  		}
  	}
  


More information about the scm-commits mailing list