diff options
author | Kyomotoi <[email protected]> | 2021-04-27 00:30:04 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-27 00:30:04 +0800 |
commit | c063d3054e95eae55a59882b02a1af683a4bfc6f (patch) | |
tree | 4083f5c1d425f9bfb2832bafa49b64dfac814138 /ATRI/plugins | |
parent | 4ff07b8247a2020e4f228ce176693f3c4403bbda (diff) | |
download | ATRI-c063d3054e95eae55a59882b02a1af683a4bfc6f.tar.gz ATRI-c063d3054e95eae55a59882b02a1af683a4bfc6f.tar.bz2 ATRI-c063d3054e95eae55a59882b02a1af683a4bfc6f.zip |
🐛 修复一个bug
修复:plugins/status 中发送与接受网络数据一致
Diffstat (limited to 'ATRI/plugins')
-rw-r--r-- | ATRI/plugins/status.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/status.py b/ATRI/plugins/status.py index 86ec3df..5e48fc3 100644 --- a/ATRI/plugins/status.py +++ b/ATRI/plugins/status.py @@ -46,7 +46,7 @@ async def _status(bot: Bot, event: MessageEvent) -> None: mem = psutil.virtual_memory().percent disk = psutil.disk_usage("/").percent inteSENT = psutil.net_io_counters().bytes_sent / 1000000 # type: ignore - inteRECV = psutil.net_io_counters().bytes_sent / 1000000 # type: ignore + inteRECV = psutil.net_io_counters().bytes_recv / 1000000 # type: ignore except GetStatusError: raise GetStatusError("Failed to get status.") @@ -85,7 +85,7 @@ async def _(): mem = psutil.virtual_memory().percent disk = psutil.disk_usage("/").percent inteSENT = psutil.net_io_counters().bytes_sent / 1000000 # type: ignore - inteRECV = psutil.net_io_counters().bytes_sent / 1000000 # type: ignore + inteRECV = psutil.net_io_counters().bytes_recv / 1000000 # type: ignore except GetStatusError: raise GetStatusError("Failed to get status.") |