Skip to content

Commit

Permalink
basic GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeyg56 committed Feb 2, 2023
1 parent bdbe120 commit d2610c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion auto_cpufreq/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,22 +1098,26 @@ def sysinfo():
"""
get system information
"""

strings = []
# processor_info
model_name = getoutput("grep -E 'model name' /proc/cpuinfo -m 1").split(":")[-1]
print(f"Processor:{model_name}")
strings.append(f"Processor:{model_name}")

# get core count
total_cpu_count = int(getoutput("nproc"))
print("Cores:", total_cpu_count)
#strings.append("Cores:", total_cpu_count)

# get architecture
cpu_arch = pl.machine()
print("Architecture:", cpu_arch)
#strings.append("Architecture:", cpu_arch)

# get driver
driver = getoutput("cpufreqctl.auto-cpufreq --driver")
print("Driver: " + driver)
#6strings.append("Driver: " + driver)

# get usage and freq info of cpus
usage_per_cpu = psutil.cpu_percent(interval=1, percpu=True)
Expand Down

0 comments on commit d2610c9

Please sign in to comment.