Finalise the feature

This commit is contained in:
Nicolargo 2014-11-29 09:41:47 +01:00
parent 5ca213335a
commit 0463d0df3b

View File

@ -972,15 +972,15 @@ class GlancesCursesBrowser(_GlancesCurses):
# Display top header # Display top header
if len(servers_list) == 0: if len(servers_list) == 0:
if self.first_scan: if self.first_scan and not self.args.disable_autodiscover:
msg = _("Glances is scanning your network (please wait)...") msg = _("Glances is scanning your network (please wait)...")
self.first_scan = False self.first_scan = False
else: else:
msg = _("No Glances server detected on your network") msg = _("No Glances servers available")
elif len(servers_list) == 1: elif len(servers_list) == 1:
msg = _("One Glances server detected on your network") msg = _("One Glances server available")
else: else:
msg = _("%d Glances servers detected on your network" % msg = _("%d Glances servers available" %
len(servers_list)) len(servers_list))
if self.args.disable_autodiscover: if self.args.disable_autodiscover:
msg += ' ' + _("(auto discover is disabled)") msg += ' ' + _("(auto discover is disabled)")