Skip to content

Commit

Permalink
typo, fix #102
Browse files Browse the repository at this point in the history
  • Loading branch information
erpalma committed Feb 18, 2019
1 parent 52d83c4 commit 33f0412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenovo_fix.py
Expand Up @@ -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...
Expand Down

0 comments on commit 33f0412

Please sign in to comment.