Browse Source

typo, fix #102

erpalma 5 years ago
parent
commit
33f0412bea
1 changed files with 1 additions and 1 deletions
  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...