summaryrefslogtreecommitdiffstats
path: root/munin/publik_recent_count
diff options
context:
space:
mode:
Diffstat (limited to 'munin/publik_recent_count')
-rwxr-xr-xmunin/publik_recent_count5
1 files changed, 3 insertions, 2 deletions
diff --git a/munin/publik_recent_count b/munin/publik_recent_count
index 51bc78f..52c0361 100755
--- a/munin/publik_recent_count
+++ b/munin/publik_recent_count
@@ -3,6 +3,7 @@
#%# capabilities=autoconf
import pickle
+import itertools
import datetime
import os
import psycopg2
@@ -38,8 +39,8 @@ time_5m = datetime.datetime.now() - datetime.timedelta(minutes=5)
time_1h = datetime.datetime.now() - datetime.timedelta(hours=1)
time_1d = datetime.datetime.now() - datetime.timedelta(days=1)
-for tenant in os.listdir(base_dir):
- if tenant in ('collectstatic', 'scripts', 'skeletons', 'spooler'):
+for tenant in itertools.chain(os.listdir(base_dir), os.listdir(os.path.join(base_dir, 'tenants'))):
+ if tenant in ('collectstatic', 'scripts', 'skeletons', 'spooler', 'tenants'):
continue
if tenant.endswith('.invalid'):
continue