Add note/instruction on how quit live/monitor/stats

This commit is contained in:
Adnan Hodzic 2021-02-06 20:08:15 +01:00
parent 6bffee4535
commit 9fcc99d5cd
2 changed files with 11 additions and 4 deletions

View File

@ -4,19 +4,18 @@
import os import os
import platform as pl import platform as pl
import re
import shutil import shutil
import sys import sys
import psutil
import distro
import time import time
import click
import warnings import warnings
from math import isclose from math import isclose
from pathlib import Path from pathlib import Path
from pprint import pformat from pprint import pformat
from subprocess import getoutput, call, run, check_output, DEVNULL from subprocess import getoutput, call, run, check_output, DEVNULL
import psutil
import distro
import click
warnings.filterwarnings("ignore") warnings.filterwarnings("ignore")

View File

@ -6,6 +6,8 @@
# core import # core import
import sys import sys
import time
import click
from subprocess import call, run from subprocess import call, run
sys.path.append('../') sys.path.append('../')
@ -57,6 +59,8 @@ def main(monitor, live, install, stats, log, daemon, debug):
daemon_not_found() daemon_not_found()
elif monitor: elif monitor:
while True: while True:
print("\nNote: You can quit monitor mode by pressing \"ctrl+c\"")
time.sleep(1)
root_check() root_check()
footer() footer()
running_daemon() running_daemon()
@ -67,6 +71,8 @@ def main(monitor, live, install, stats, log, daemon, debug):
mon_autofreq() mon_autofreq()
countdown(5) countdown(5)
elif live: elif live:
print("\nNote: You can quit live mode by pressing \"ctrl+c\"")
time.sleep(1)
while True: while True:
root_check() root_check()
footer() footer()
@ -78,6 +84,8 @@ def main(monitor, live, install, stats, log, daemon, debug):
set_autofreq() set_autofreq()
countdown(5) countdown(5)
elif stats: elif stats:
print("\nNote: You can quit stats mode by pressing \"ctrl+c\"")
time.sleep(1)
read_stats() read_stats()
elif log: elif log:
deprecated_log_msg() deprecated_log_msg()