ejabberd 19.* fix

* ejabberd 19 and above report muc count only on the muc host
This commit is contained in:
nico 2020-02-16 12:23:47 +01:00
parent 5ce45fca7f
commit 7c656961ce
Signed by: mightyBroccoli
GPG Key ID: EA7C31AAB1BDC1A2
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class EjabberdMetrics:
def fetch_muc(self, vhost=None): def fetch_muc(self, vhost=None):
host = "global" host = "global"
if vhost is not None: if vhost is not None:
if self._verstring.major > 19: if self._verstring.major >= 19:
host = "conference." + vhost host = "conference." + vhost
else: else:
host = vhost host = vhost