mirror of https://github.com/nicolargo/glances
Pep8
parent
0f5a60b44d
commit
c364c7070f
|
@ -39,7 +39,7 @@ def __signal_handler(signal, frame):
|
|||
|
||||
def end():
|
||||
"""
|
||||
Stop Glances
|
||||
Stop Glances
|
||||
"""
|
||||
|
||||
if (core.is_standalone()):
|
||||
|
|
|
@ -36,4 +36,5 @@ if ((__package__ is None) and (not hasattr(sys, "frozen"))):
|
|||
import glances
|
||||
|
||||
if __name__ == '__main__':
|
||||
glances.main()
|
||||
glances.main()
|
||||
|
|
@ -17,6 +17,9 @@
|
|||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
Main Glances script
|
||||
"""
|
||||
|
||||
# Import system libs
|
||||
import sys
|
||||
|
|
|
@ -169,7 +169,7 @@ class glancesProcesses:
|
|||
|
||||
# Do not process if disable tag is set
|
||||
if (self.disable_tag):
|
||||
return
|
||||
return
|
||||
|
||||
# Get the time since last update
|
||||
time_since_update = getTimeSinceLastUpdate('process_disk')
|
||||
|
|
|
@ -60,7 +60,7 @@ class Plugin(GlancesPlugin):
|
|||
core_stats["log"] = cpu_count()
|
||||
except NameError:
|
||||
core_stats = None
|
||||
|
||||
|
||||
self.stats = core_stats
|
||||
|
||||
return self.stats
|
||||
|
|
|
@ -51,7 +51,6 @@ class Plugin(GlancesPlugin):
|
|||
# Init stats
|
||||
self.diskio_old = []
|
||||
|
||||
|
||||
def update(self):
|
||||
"""
|
||||
Update disk IO stats
|
||||
|
|
Loading…
Reference in New Issue