This commit is contained in:
guange 2019-01-17 21:42:08 +08:00
parent 41e092becc
commit c9d1c11c16
2 changed files with 26 additions and 23 deletions

View File

@ -36,3 +36,6 @@ def get_platform_info():
return info
return {'up_time': '20:52', 'tasks': '127', 'cpu_us': '1.6', 'cpu_sy': '1.6', 'cpu_id': '96.9', 'mem_total': '12134268', 'mem_free': '5648868', 'mem_used': '4537556'}
if __name__ == "__main__":
print(get_platform_info())