[munin] strip wsp
darcs-hash:20100211115432-bd074-21666d2a895a1476c2af86a6968e60f6e011858e.gz
This commit is contained in:
parent
909aff2221
commit
2b2226644a
3 changed files with 14 additions and 14 deletions
|
@ -34,7 +34,7 @@ elif arg == "fichier" :
|
|||
ips = [ x.ip() for x in crans_ldap().search('ip=*')['machine'] ]
|
||||
|
||||
out = file(fichier, "w")
|
||||
|
||||
|
||||
for subnet in NETs :
|
||||
total = 0
|
||||
for net in NETs[subnet]:
|
||||
|
@ -44,7 +44,7 @@ elif arg == "fichier" :
|
|||
|
||||
utilisees = len( [ ip for ip in ips if AddrInNet( ip, NETs[subnet] ) ] )
|
||||
pourcentage = int((utilisees*100)/total)
|
||||
|
||||
|
||||
nom = subnet.replace('-', '')
|
||||
out.write("%s.value %d\n" % (nom, pourcentage))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue