Coding style.

This commit is contained in:
Andrew Hamilton 2016-10-18 12:51:49 +02:00
parent 8c11b73714
commit 9a07571d75
2 changed files with 0 additions and 14 deletions

13
vigil
View file

@ -802,19 +802,6 @@ class Screen:
({"p"}, toggle_pause), ({"r"}, refresh)]
def _get_cpu_temperature():
with open("/sys/class/thermal/thermal_zone0/temp", "r") as temp_file:
return int(temp_file.read()[:-4])
def _regulate_temperature(log):
if _get_cpu_temperature() >= 72:
log.log_message("The computer is too hot. Waiting to cool down...")
while _get_cpu_temperature() > 66:
time.sleep(1)
log.log_message("The computer has cooled down. Continuing...")
def _add_watch_manager_to_mainloop(root_path, mainloop, on_filesystem_change,
exclude_filter):
watch_manager = pyinotify.WatchManager()

View file

@ -52,7 +52,6 @@ class Worker:
while True:
await jobs_added_event.wait()
while True:
# _regulate_temperature(log) # My fan is broken
try:
self.result = summary.get_closest_placeholder()
except StopIteration: