diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/monitor.py | 4 |
3 files changed, 7 insertions, 4 deletions
@@ -1,5 +1,5 @@ PACKAGE = net_monitor -VERSION = 0.26 +VERSION = 0.27 GITPATH = git://git.mageia.org/software/net_monitor all: version python @@ -22,7 +22,7 @@ install: all install -m755 scripts/netmonitor_down $(RPM_BUILD_ROOT)/etc/sysconfig/network-scripts/ifdown.d/ cleandist: - rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2 + rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.xz dist: cleandist git archive --prefix $(PACKAGE)-$(VERSION)/ HEAD | xz -9 > $(PACKAGE)-$(VERSION).tar.xz @@ -2,6 +2,9 @@ Network monitoring tool -- History of user-visible changes Copyright (C) 2009, Mandriva Copyright (C) 2011 and later, Mageia +0.27: +- traffic accounting : workaround the fact vnstatd uses a db nowadays + 0.26: - connections : display of tcp6 and udp6 ones diff --git a/src/monitor.py b/src/monitor.py index ac625e6..21420ad 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -246,9 +246,9 @@ class Monitor: return net def has_network_accounting(self, iface): - """Checks if network accounting was enabled on interface""" + """Checks if network accounting was enabled""" try: - os.stat("/var/lib/vnstat/%s" % iface) + os.stat("/var/lib/vnstat/vnstat.db") return True except: return False |