diff options
-rwxr-xr-x | metrics.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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): |