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 time
from datetime import datetime, timedelta
import locale
import gettext
locale.setlocale(locale.LC_ALL, '')
gettext.install(__appname__)
# Specifics libs
@ -431,7 +433,7 @@ class glancesGrabSensors:
"""
Init sensors stats
"""
try:
sensors.init()
except:
@ -443,7 +445,7 @@ class glancesGrabSensors:
"""
Update the stats
"""
# Reset the list
self.sensors_list = []
@ -1455,9 +1457,9 @@ class glancesScreen:
# Log
if cpu:
try:
logs.add(self.__getCpuAlert(cpu['user']), "CPU user",
logs.add(self.__getCpuAlert(cpu['user']), "CPU user",
cpu['user'], proclist)
logs.add(self.__getCpuAlert(cpu['system']), "CPU system",
logs.add(self.__getCpuAlert(cpu['system']), "CPU system",
cpu['system'], proclist)
except:
pass