From 06b009027125e95a2408b06d37e4852eb8354f72 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 4 Dec 2017 18:00:33 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E4=BF=AE=E5=A4=8D=E4=B8=AD=E4=BF=A1?= =?UTF-8?q?=E6=9C=9F=E6=9D=83=E6=8E=A5=E5=8F=A3=E8=8E=B7=E5=8F=96op=5Fstat?= =?UTF-8?q?ion=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 2 +- vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 633d9ad7..e9c96db4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,4 @@ msgpack-python qdarkstyle SortedContainers futuquant -snappy \ No newline at end of file +wmi \ No newline at end of file diff --git a/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py b/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py index c3516b41..4c1424a7 100644 --- a/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py +++ b/vnpy/trader/gateway/cshshlpGateway/cshshlpGateway.py @@ -605,7 +605,7 @@ class CshshlpTdApi(CsHsHlp): lip = interface.IPAddress[0] # 公网IP for processor in c.Win32_Processor(): - cpu = temp.processor.strip() # CPU编号 + cpu = processor.Processorid.strip() # CPU编号 for disk in c.Win32_DiskDrive(): # 硬盘编号 hdd = disk.SerialNumber.strip()