From 0a2a007e241d2e8401cfc8598a82d87b1c928f8a Mon Sep 17 00:00:00 2001 From: cppla <i@cpp.la> Date: Mon, 30 May 2022 13:08:34 +0800 Subject: [PATCH] support for python 3.10 --- clients/client-linux.py | 6 +++--- clients/client-psutil.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/clients/client-linux.py b/clients/client-linux.py index 235c734..cfac848 100755 --- a/clients/client-linux.py +++ b/clients/client-linux.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # coding: utf-8 -# Update by : https://github.com/cppla/ServerStatus, Update date: 20220323 -# 版本:1.0.3, 支持Python版本:2.7 to 3.9 +# Update by : https://github.com/cppla/ServerStatus, Update date: 20220530 +# 版本:1.0.3, 支持Python版本:2.7 to 3.10 # 支持操作系统: Linux, OSX, FreeBSD, OpenBSD and NetBSD, both 32-bit and 64-bit architectures # 说明: 默认情况下修改server和user就可以了。丢包率监测方向可以自定义,例如:CU = "www.facebook.com"。 @@ -310,7 +310,7 @@ def get_realtime_data(): target=_disk_io, ) for ti in [t1, t2, t3, t4, t5]: - ti.setDaemon(True) + ti.daemon = True ti.start() def byte_str(object): diff --git a/clients/client-psutil.py b/clients/client-psutil.py index 5f1b58b..3dafb61 100755 --- a/clients/client-psutil.py +++ b/clients/client-psutil.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 # coding: utf-8 -# Update by : https://github.com/cppla/ServerStatus, Update date: 20220323 +# Update by : https://github.com/cppla/ServerStatus, Update date: 20220530 # 依赖于psutil跨平台库 -# 版本:1.0.3, 支持Python版本:2.7 to 3.9 +# 版本:1.0.3, 支持Python版本:2.7 to 3.10 # 支持操作系统: Linux, Windows, OSX, Sun Solaris, FreeBSD, OpenBSD and NetBSD, both 32-bit and 64-bit architectures # 说明: 默认情况下修改server和user就可以了。丢包率监测方向可以自定义,例如:CU = "www.facebook.com"。 @@ -280,7 +280,7 @@ def get_realtime_data(): target=_disk_io, ) for ti in [t1, t2, t3, t4, t5]: - ti.setDaemon(True) + ti.daemon = True ti.start() def byte_str(object):