From 9fcc99d5cdc0313ce78f52f3aba2f114d8ab2c26 Mon Sep 17 00:00:00 2001 From: Adnan Hodzic Date: Sat, 6 Feb 2021 20:08:15 +0100 Subject: [PATCH] Add note/instruction on how quit live/monitor/stats --- auto_cpufreq/core.py | 7 +++---- bin/auto-cpufreq | 8 ++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index 8449c90..a5891c1 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -4,19 +4,18 @@ import os import platform as pl -import re import shutil import sys +import psutil +import distro import time +import click import warnings from math import isclose from pathlib import Path from pprint import pformat from subprocess import getoutput, call, run, check_output, DEVNULL -import psutil -import distro -import click warnings.filterwarnings("ignore") diff --git a/bin/auto-cpufreq b/bin/auto-cpufreq index d52e037..e94ecba 100755 --- a/bin/auto-cpufreq +++ b/bin/auto-cpufreq @@ -6,6 +6,8 @@ # core import import sys +import time +import click from subprocess import call, run sys.path.append('../') @@ -57,6 +59,8 @@ def main(monitor, live, install, stats, log, daemon, debug): daemon_not_found() elif monitor: while True: + print("\nNote: You can quit monitor mode by pressing \"ctrl+c\"") + time.sleep(1) root_check() footer() running_daemon() @@ -67,6 +71,8 @@ def main(monitor, live, install, stats, log, daemon, debug): mon_autofreq() countdown(5) elif live: + print("\nNote: You can quit live mode by pressing \"ctrl+c\"") + time.sleep(1) while True: root_check() footer() @@ -78,6 +84,8 @@ def main(monitor, live, install, stats, log, daemon, debug): set_autofreq() countdown(5) elif stats: + print("\nNote: You can quit stats mode by pressing \"ctrl+c\"") + time.sleep(1) read_stats() elif log: deprecated_log_msg()