From 2504bc66707948cbd8e156b967b953a31336857e Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 21 Sep 2017 13:59:43 +0300 Subject: [PATCH] Fixed fetch of connected hosts number in bitmessageqt.support --- src/bitmessageqt/support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/support.py b/src/bitmessageqt/support.py index 8ec3c16d..03b302e6 100644 --- a/src/bitmessageqt/support.py +++ b/src/bitmessageqt/support.py @@ -16,7 +16,7 @@ import paths import proofofwork from pyelliptic.openssl import OpenSSL import queues -import shared +import network.stats import state from version import softwareVersion @@ -124,7 +124,7 @@ def createSupportMessage(myapp): upnp = BMConfigParser().get('bitmessagesettings', 'upnp') except: upnp = "N/A" - connectedhosts = len(shared.connectedHostsList) + connectedhosts = len(network.stats.connectedHostsList()) myapp.ui.textEditMessage.setText(str(QtGui.QApplication.translate("Support", SUPPORT_MESSAGE)).format(version, os, architecture, pythonversion, opensslversion, frozen, portablemode, cpow, openclpow, locale, socks, upnp, connectedhosts))