cppla / ServerStatus

云探针、多服务器探针、云监控、多服务器云监控,演示: https://tz.cloudcpp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macOS 无法获取磁盘信息

gxusb opened this issue · comments

commented

client-psutil.py
无法获取磁盘信息

image

Exception in thread Thread-5 (_disk_io):
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
Connecting...
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/ljn/Desktop/client-psutil.py", line 214, in _disk_io
    p._before = p.io_counters()
AttributeError: 'Process' object has no attribute 'io_counters'
Authentication successful. Access granted.

You are connecting via: IPv4
commented

已作兼容性处理,beta.