From c7bf9f6b9f186b1eb24bd3d3665f04fafeb68246 Mon Sep 17 00:00:00 2001 From: genofire Date: Wed, 10 Jun 2020 23:23:34 +0200 Subject: fix muc_host --- metrics.py | 6 +++--- 1 file 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): -- cgit v1.2.3-54-g00ecf