From 33f0412bea8af7afa9a57693c2f171337e026982 Mon Sep 17 00:00:00 2001 From: erpalma Date: Mon, 18 Feb 2019 10:44:56 +0100 Subject: [PATCH] typo, fix #102 --- lenovo_fix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lenovo_fix.py b/lenovo_fix.py index a220468..2e1e975 100755 --- a/lenovo_fix.py +++ b/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...