diff --git a/__pycache__/sys_monitor_cli.cpython-39.pyc b/__pycache__/sys_monitor_cli.cpython-39.pyc index 089db05..249604b 100644 Binary files a/__pycache__/sys_monitor_cli.cpython-39.pyc and b/__pycache__/sys_monitor_cli.cpython-39.pyc differ diff --git a/_get_sys_information.py b/_get_sys_information.py index d94f5d4..b13d970 100644 --- a/_get_sys_information.py +++ b/_get_sys_information.py @@ -4,7 +4,7 @@ from functools import lru_cache -@lru_cache +@lru_cache(60) def get_hrad_info(start_time): # print("func get_hrad_info") hard_info = {} @@ -37,7 +37,7 @@ def get_hrad_info(start_time): return hard_info -@lru_cache +@lru_cache(60) def _get_cpu_status(start_time): # print("func _get_cpu_status") cpu_status = {} @@ -57,7 +57,7 @@ def _get_cpu_status(start_time): return cpu_status -@lru_cache +@lru_cache(60) def _get_mem_status(start_time): # print("func _get_mem_status") mem_status = {} @@ -82,7 +82,7 @@ def _get_mem_status(start_time): return mem_status -@lru_cache +@lru_cache(60) def _get_disk_status(start_time): # print("func _get_disk_status") disk_status_res = {} @@ -111,7 +111,7 @@ def _get_disk_status(start_time): return disk_status_res -@lru_cache +@lru_cache(60) def _get_disk_capacity(time): # print("func _get_disk_capacity") disk_status = {} @@ -130,7 +130,7 @@ def _get_disk_capacity(time): return disk_status -@lru_cache() +@lru_cache(60) def _byte_convert(bytes, target_type): target_type = target_type.lower().strip() if target_type in ("k", "kb", "kilobyte"):