mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-30 20:58:09 +03:00
Cosmetic change
This commit is contained in:
parent
21c02d1814
commit
da2d2b4534
@ -51,10 +51,10 @@ except ImportError:
|
|||||||
from xmlrpc.server import SimpleXMLRPCServer
|
from xmlrpc.server import SimpleXMLRPCServer
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# python2
|
# For Python v2.x
|
||||||
from xmlrpclib import ServerProxy
|
from xmlrpclib import ServerProxy
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# python3
|
# For Python v3.x
|
||||||
from xmlrpc.client import ServerProxy
|
from xmlrpc.client import ServerProxy
|
||||||
|
|
||||||
if platform.system() != 'Windows':
|
if platform.system() != 'Windows':
|
||||||
@ -142,7 +142,6 @@ except Exception:
|
|||||||
else:
|
else:
|
||||||
psutil_network_io_tag = True
|
psutil_network_io_tag = True
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Sensors (optionnal)
|
# Sensors (optionnal)
|
||||||
import sensors
|
import sensors
|
||||||
@ -585,7 +584,7 @@ class GlancesStats:
|
|||||||
Get process (proc) statistics
|
Get process (proc) statistics
|
||||||
"""
|
"""
|
||||||
procstat = {}
|
procstat = {}
|
||||||
|
|
||||||
procstat['memory_info'] = proc.get_memory_info()
|
procstat['memory_info'] = proc.get_memory_info()
|
||||||
|
|
||||||
if psutil_get_cpu_percent_tag:
|
if psutil_get_cpu_percent_tag:
|
||||||
|
Loading…
Reference in New Issue
Block a user