refactor - Minor typo fixes in cleanup

This commit is contained in:
RazCrimson 2021-11-28 20:07:34 +05:30
parent ea8423d9a5
commit 37f9fb5270
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -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 = ''