mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Fix Prosody Registered Users
I use python 2.6 & python 2.7 len([listfiles(account_dir)]) returns everytime 1 The generator must be executed to get the corrent number of registed users.
This commit is contained in:
parent
137cbf74b6
commit
26e7ae9e60
@ -166,7 +166,7 @@ def main():
|
||||
if mode == "config":
|
||||
print "%s.label %s" % (munin_var, vhost)
|
||||
else:
|
||||
accounts = len([listfiles(account_dir)])
|
||||
accounts = len(list(listfiles(account_dir)))
|
||||
print "%s.value %s" % (munin_var, accounts)
|
||||
|
||||
def listdirs(folder):
|
||||
|
Loading…
Reference in New Issue
Block a user