[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
|
@ -28,7 +28,7 @@ def switch_prise(bat, prise) :
|
|||
multiprise = map(lambda x : len(x[1])>1 and x[0], reverse(BAT).items())
|
||||
while False in multiprise :
|
||||
multiprise.remove(False)
|
||||
|
||||
|
||||
try :
|
||||
arg = sys.argv[1]
|
||||
except :
|
||||
|
@ -73,7 +73,7 @@ else :
|
|||
except:
|
||||
PRISES_ENABLE -= 0
|
||||
print "enabled.value %d" % PRISES_ENABLE
|
||||
|
||||
|
||||
PRISES_ACTIVES = 0
|
||||
for switch in all_switchs(BAT) :
|
||||
try:
|
||||
|
@ -115,16 +115,16 @@ else :
|
|||
NB_PRISES += PRISES_FIXES
|
||||
print "prises.value %d" % NB_PRISES
|
||||
|
||||
|
||||
|
||||
print "reste.value %d" % int(NB_PRISES - PRISES_ENABLE - PRISES_FIXES - PRISES_CRANS)
|
||||
|
||||
|
||||
fichier = open(stats_batiments, 'r')
|
||||
#NB_ADHERENT = 0 # Plus génant qu'autre chose
|
||||
for line in fichier.readlines():
|
||||
if line[3:4] == BAT and line[:3] == "bat" :
|
||||
NB_ADHERENT = line[11:].strip()
|
||||
print "adherent.value %s" % NB_ADHERENT
|
||||
|
||||
|
||||
if BAT in BAT_CHBRES.keys() :
|
||||
print "chbres.value %d" % BAT_CHBRES[BAT]
|
||||
print "connues.value %d" % len(chbre_prises[BAT].keys())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue