mirror of
https://github.com/erpalma/throttled.git
synced 2026-03-06 13:04:03 +01:00
typo, fix #102
This commit is contained in:
parent
52d83c41bb
commit
33f0412bea
|
|
@ -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...
|
||||
|
|
|
|||
Loading…
Reference in a new issue