mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-20 15:52:16 +03:00
refactor - Minor typo fixes in cleanup
This commit is contained in:
parent
ea8423d9a5
commit
37f9fb5270
@ -118,7 +118,7 @@ class GlancesAutoDiscoverListener(object):
|
||||
|
||||
Note: the return code will never be used
|
||||
|
||||
:return True if the zeroconf client is a Glances server
|
||||
:return: True if the zeroconf client is a Glances server
|
||||
"""
|
||||
if srv_type != zeroconf_type:
|
||||
return False
|
||||
|
@ -228,7 +228,7 @@ def subsample(data, sampling):
|
||||
|
||||
Data should be a list of numerical itervalues
|
||||
|
||||
:return a sub-sampled list of sampling length
|
||||
:return: a sub-sampled list of sampling length
|
||||
"""
|
||||
if len(data) <= sampling:
|
||||
return data
|
||||
@ -241,7 +241,7 @@ def time_serie_subsample(data, sampling):
|
||||
|
||||
Data should be a list of set (time, value)
|
||||
|
||||
:return a sub-sampled list of sampling length
|
||||
:return: a sub-sampled list of sampling length
|
||||
"""
|
||||
if len(data) <= sampling:
|
||||
return data
|
||||
|
@ -572,7 +572,7 @@ class _GlancesCurses(object):
|
||||
"SNMP": Client is connected to a SNMP server
|
||||
"Disconnected": Client is disconnected from the server
|
||||
|
||||
:return True if the stats have been displayed else False if the help have been displayed
|
||||
:return: True if the stats have been displayed else False if the help have been displayed
|
||||
"""
|
||||
# Init the internal line/column for Glances Curses
|
||||
self.init_line_column()
|
||||
|
@ -28,7 +28,7 @@ def secure_popen(cmd):
|
||||
|
||||
Multiple command should be seperated with a &&
|
||||
|
||||
:return the result of the commands
|
||||
:return: the result of the commands
|
||||
"""
|
||||
ret = ''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user