Fixed: Missing default values for cpu temp high and crit

pull/184/head
aristocratos 4 years ago
parent 30f41fa42c
commit 6dcc985049

@ -55,7 +55,7 @@ if errors:
print("\nInstall required modules!\n") print("\nInstall required modules!\n")
raise SystemExit(1) raise SystemExit(1)
VERSION: str = "1.0.48" VERSION: str = "1.0.49"
#? Argument parser -------------------------------------------------------------------------------> #? Argument parser ------------------------------------------------------------------------------->
args = argparse.ArgumentParser() args = argparse.ArgumentParser()
@ -2772,6 +2772,8 @@ class CpuCollector(Collector):
if core_dict: if core_dict:
if not temp: if not temp:
temp = core_dict.get(0, 0) temp = core_dict.get(0, 0)
if not cls.cpu_temp_high or not cls.cpu_temp_crit:
cls.cpu_temp_high, cls.cpu_temp_crit = 80, 95
cls.cpu_temp[0].append(temp) cls.cpu_temp[0].append(temp)
if cpu_type == "ryzen": if cpu_type == "ryzen":
ccds: int = len(core_dict) ccds: int = len(core_dict)

Loading…
Cancel
Save