Skip to content

Commit

Permalink
debug for linux py36
Browse files Browse the repository at this point in the history
  • Loading branch information
alunAlunnnnn committed Sep 24, 2021
1 parent cf1a7a5 commit a77748b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file modified __pycache__/sys_monitor_cli.cpython-39.pyc
Binary file not shown.
12 changes: 6 additions & 6 deletions _get_sys_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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 = {}
Expand All @@ -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 = {}
Expand All @@ -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 = {}
Expand Down Expand Up @@ -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 = {}
Expand All @@ -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"):
Expand Down

0 comments on commit a77748b

Please sign in to comment.