diff options
author | genofire <geno+dev@fireorbit.de> | 2020-06-10 23:23:34 +0200 |
---|---|---|
committer | genofire <geno+dev@fireorbit.de> | 2020-06-10 23:23:34 +0200 |
commit | c7bf9f6b9f186b1eb24bd3d3665f04fafeb68246 (patch) | |
tree | 64d637969b94da69201bde6e13cbdc7be373ad95 | |
parent | dd30520c628e175761930b111e31020db8cfcb36 (diff) |
fix muc_host
-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): |