mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-28 11:41:46 +03:00
Finalise the feature
This commit is contained in:
parent
5ca213335a
commit
0463d0df3b
@ -972,15 +972,15 @@ class GlancesCursesBrowser(_GlancesCurses):
|
||||
|
||||
# Display top header
|
||||
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)...")
|
||||
self.first_scan = False
|
||||
else:
|
||||
msg = _("No Glances server detected on your network")
|
||||
msg = _("No Glances servers available")
|
||||
elif len(servers_list) == 1:
|
||||
msg = _("One Glances server detected on your network")
|
||||
msg = _("One Glances server available")
|
||||
else:
|
||||
msg = _("%d Glances servers detected on your network" %
|
||||
msg = _("%d Glances servers available" %
|
||||
len(servers_list))
|
||||
if self.args.disable_autodiscover:
|
||||
msg += ' ' + _("(auto discover is disabled)")
|
||||
|
Loading…
Reference in New Issue
Block a user