Explorar o código

typo, fix #102

erpalma %!s(int64=5) %!d(string=hai) anos
pai
achega
33f0412bea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lenovo_fix.py

+ 1 - 1
lenovo_fix.py

@@ -597,7 +597,7 @@ def monitor(exit_event, wait):
     print('Realtime monitoring of throttling causes:\n')
     while not exit_event.is_set():
         value = readmsr(IA32_THERM_STATUS, from_bit=0, to_bit=15, cpu=0)
-        offsets = {'Thermal': 0, 'Power': 10, 'Current': 12, 'Cross-comain (e.g. GPU)': 14}
+        offsets = {'Thermal': 0, 'Power': 10, 'Current': 12, 'Cross-domain (e.g. GPU)': 14}
         output = ('{:s}: {:s}'.format(cause, LIM if bool((value >> offsets[cause]) & 1) else OK) for cause in offsets)
 
         # ugly code, just testing...