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