aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmetrics.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/metrics.py b/metrics.py
index c21511b..90d3fc5 100755
--- a/metrics.py
+++ b/metrics.py
@@ -68,12 +68,12 @@ class EjabberdMetrics(EjabberdCtl):
# muc
if not hasattr(self, "_muc"):
self._muc = {}
- self._muc[None] = self.fetch_muc_count()
+ self._muc[None] = self.fetch_muc_count(muc_host=self.muc_host)
# registered + muc
for vhost in self._vhosts:
self._registered[vhost] = self.fetch_registered_count(vhost)
- self._muc[vhost] = self.fetch_muc_count(vhost)
+ self._muc[vhost] = self.fetch_muc_count(vhost,muc_host=self.muc_host)
# online user
self._onlineuser = self.fetch_onlineuser()
@@ -159,7 +159,7 @@ class EjabberdMetrics(EjabberdCtl):
if not hasattr(self, "_muc"):
self._muc = {}
if vhost not in self._muc:
- self._muc[vhost] = self.fetch_muc_count(vhost)
+ self._muc[vhost] = self.fetch_muc_count(vhost, muc_host=self.muc_host)
return self._muc[vhost]
def get_vhosts(self):