Fix unicode formatting bug

This commit is contained in:
asergi 2012-12-14 12:50:00 +01:00
parent 1544525c57
commit 36746526b0

View File

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