From: yomguy <> Date: Mon, 20 Oct 2008 16:05:43 +0000 (+0000) Subject: Fix acpi multicore temp X-Git-Tag: 0.9~302 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c184361dabaab07d2cc5f88be9a62e5454610db0;p=telecaster-client.git Fix acpi multicore temp --- diff --git a/telecaster.py b/telecaster.py index 123654f..eebb7e7 100755 --- a/telecaster.py +++ b/telecaster.py @@ -399,13 +399,14 @@ class WebView: print "%s" % batt_charge #print "Estimation durée batterie :" #print "%s" % self.acpi.estimated_lifetime() - print "Temp core 1 :" - print "%s" % self.acpi.temperature(0) - try: - print "Temp core 2 :" - print "%s" % self.acpi.temperature(1) + try: + print "Temp core 1 :%s" % self.acpi.temperature(0) + except: + pass + try: + print "Temp core 2 :%s" % self.acpi.temperature(1) except: - pass + pass print "Address IP :" print "%s" % ip_info print ""