Administrator
2023-08-15 e7bbba25647bb6b682a6c356b600db14c6d691c0
trade/huaxin/trade_server.py
@@ -650,6 +650,7 @@
            cpu_percent = psutil.cpu_percent(interval=1)
            fdata["device"] = {"cpu": cpu_percent, "memery": memory_info.percent}
            result = {"code": 0, "data": fdata, "msg": ""}
            print("OnGetEnvInfo 成功")
            self.send_response(result, client_id, request_id)
        except Exception as e:
            self.send_response({"code": 1, "msg": str(e)}, client_id, request_id)