mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-08-06 14:15:05 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -6,7 +6,7 @@
|
|||
# Released under the GPL v2
|
||||
import sys, commands, re
|
||||
accountingLineExp = re.compile(r"^\s*\d+[KMG]*\s+(\d+)([KMGT]*)\s+(\w+).*$")
|
||||
|
||||
|
||||
def getBytesByChain():
|
||||
trafficCmd = "shorewall"
|
||||
status, output = commands.getstatusoutput("/sbin/shorewall show accounting 2>/dev/null")
|
||||
|
@ -41,7 +41,7 @@ def getBytesByChain():
|
|||
for name in chainNames:
|
||||
retval.append((name, chains[name]))
|
||||
return retval
|
||||
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
if sys.argv[1] == "autoconf":
|
||||
print "yes"
|
||||
|
@ -56,6 +56,6 @@ if len(sys.argv) > 1:
|
|||
print "%s.label %s" % (chain, chain)
|
||||
print "%s.cdef %s,8,*" % (chain, chain)
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
for chain, bytes in getBytesByChain():
|
||||
print "%s.value %i" % (chain, bytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue