mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 04:04:03 +03:00
Finalise the feature
This commit is contained in:
parent
5ca213335a
commit
0463d0df3b
@ -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)")
|
||||||
|
Loading…
Reference in New Issue
Block a user