fix muc_host
This commit is contained in:
parent
dd30520c62
commit
c7bf9f6b9f
|
@ -68,12 +68,12 @@ class EjabberdMetrics(EjabberdCtl):
|
||||||
# muc
|
# muc
|
||||||
if not hasattr(self, "_muc"):
|
if not hasattr(self, "_muc"):
|
||||||
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
|
# registered + muc
|
||||||
for vhost in self._vhosts:
|
for vhost in self._vhosts:
|
||||||
self._registered[vhost] = self.fetch_registered_count(vhost)
|
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
|
# online user
|
||||||
self._onlineuser = self.fetch_onlineuser()
|
self._onlineuser = self.fetch_onlineuser()
|
||||||
|
@ -159,7 +159,7 @@ class EjabberdMetrics(EjabberdCtl):
|
||||||
if not hasattr(self, "_muc"):
|
if not hasattr(self, "_muc"):
|
||||||
self._muc = {}
|
self._muc = {}
|
||||||
if vhost not in 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]
|
return self._muc[vhost]
|
||||||
|
|
||||||
def get_vhosts(self):
|
def get_vhosts(self):
|
||||||
|
|
Loading…
Reference in New Issue