mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-26 02:31:36 +03:00
GPU plugin is display when hitting '4' or '5' shortkeys #1012
This commit is contained in:
parent
5f0d913587
commit
1f251f8c68
1
NEWS
1
NEWS
@ -8,6 +8,7 @@ Version 2.8.1
|
||||
Bugs corrected:
|
||||
|
||||
* Autodiscover error while binding on IPv6 addresses (issue #1002)
|
||||
* GPU plugin is display when hitting '4' or '5' shortkeys (issue #1012)
|
||||
|
||||
Version 2.8
|
||||
===========
|
||||
|
@ -400,33 +400,24 @@ class _GlancesCurses(object):
|
||||
|
||||
def disable_top(self):
|
||||
"""Disable the top panel"""
|
||||
self.args.disable_quicklook = True
|
||||
self.args.disable_cpu = True
|
||||
self.args.disable_mem = True
|
||||
self.args.disable_memswap = True
|
||||
self.args.disable_load = True
|
||||
for p in ['quicklook', 'cpu', 'gpu', 'mem', 'memswap', 'load']:
|
||||
setattr(self.args, 'disable_' + p, True)
|
||||
|
||||
def enable_top(self):
|
||||
"""Enable the top panel"""
|
||||
self.args.disable_quicklook = False
|
||||
self.args.disable_cpu = False
|
||||
self.args.disable_mem = False
|
||||
self.args.disable_memswap = False
|
||||
self.args.disable_load = False
|
||||
for p in ['quicklook', 'cpu', 'gpu', 'mem', 'memswap', 'load']:
|
||||
setattr(self.args, 'disable_' + p, False)
|
||||
|
||||
def disable_fullquicklook(self):
|
||||
"""Disable the full quicklook mode"""
|
||||
self.args.disable_quicklook = False
|
||||
self.args.disable_cpu = False
|
||||
self.args.disable_mem = False
|
||||
self.args.disable_memswap = False
|
||||
for p in ['quicklook', 'cpu', 'gpu', 'mem', 'memswap']:
|
||||
setattr(self.args, 'disable_' + p, False)
|
||||
|
||||
def enable_fullquicklook(self):
|
||||
"""Disable the full quicklook mode"""
|
||||
self.args.disable_quicklook = False
|
||||
self.args.disable_cpu = True
|
||||
self.args.disable_mem = True
|
||||
self.args.disable_memswap = True
|
||||
for p in ['cpu', 'gpu', 'mem', 'memswap']:
|
||||
setattr(self.args, 'disable_' + p, True)
|
||||
|
||||
def end(self):
|
||||
"""Shutdown the curses window."""
|
||||
|
Loading…
Reference in New Issue
Block a user