Update read_fan_speed_and_cpu.py
This commit is contained in:
parent
f1bef44fc1
commit
8fce03054e
|
@ -36,7 +36,7 @@ GPIO.add_event_detect(TACH, GPIO.FALLING, fell)
|
|||
try:
|
||||
while True:
|
||||
cpu = CPUTemperature()
|
||||
print ("%.f RPM | CPU Temp: $.f °C" % (rpm, cpu.temperature))
|
||||
print ("%.f RPM | CPU Temp: %.f °C" % (rpm, cpu.temperature))
|
||||
rpm = 0
|
||||
time.sleep(1) # Detect every second
|
||||
|
||||
|
|
Loading…
Reference in New Issue