mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-30 20:58:09 +03:00
Fix unicode formatting bug
This commit is contained in:
parent
1544525c57
commit
36746526b0
@ -34,7 +34,9 @@ import getopt
|
|||||||
import signal
|
import signal
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
import locale
|
||||||
import gettext
|
import gettext
|
||||||
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
gettext.install(__appname__)
|
gettext.install(__appname__)
|
||||||
|
|
||||||
# Specifics libs
|
# Specifics libs
|
||||||
@ -431,7 +433,7 @@ class glancesGrabSensors:
|
|||||||
"""
|
"""
|
||||||
Init sensors stats
|
Init sensors stats
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
sensors.init()
|
sensors.init()
|
||||||
except:
|
except:
|
||||||
@ -443,7 +445,7 @@ class glancesGrabSensors:
|
|||||||
"""
|
"""
|
||||||
Update the stats
|
Update the stats
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Reset the list
|
# Reset the list
|
||||||
self.sensors_list = []
|
self.sensors_list = []
|
||||||
|
|
||||||
@ -1455,9 +1457,9 @@ class glancesScreen:
|
|||||||
# Log
|
# Log
|
||||||
if cpu:
|
if cpu:
|
||||||
try:
|
try:
|
||||||
logs.add(self.__getCpuAlert(cpu['user']), "CPU user",
|
logs.add(self.__getCpuAlert(cpu['user']), "CPU user",
|
||||||
cpu['user'], proclist)
|
cpu['user'], proclist)
|
||||||
logs.add(self.__getCpuAlert(cpu['system']), "CPU system",
|
logs.add(self.__getCpuAlert(cpu['system']), "CPU system",
|
||||||
cpu['system'], proclist)
|
cpu['system'], proclist)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user