perf: 修改日志清理

This commit is contained in:
ibuler
2023-02-16 18:32:04 +08:00
parent 9e6b01283d
commit 0c30e509dc
11 changed files with 89 additions and 82 deletions

View File

@@ -38,7 +38,7 @@ class ToolsWebsocket(JsonWebsocketConsumer):
self.send_json({'msg': msg})
break
if delay is None:
msg = msg.format(dest_addr, 'failed. (timeout within {}sec.)'.format(timeout))
msg = msg.format(dest_addr, 'failed. (timeout within {}s)'.format(timeout))
else:
delay = delay * 1000
msg = msg.format(dest_addr, 'get ping in %0.4fms' % delay)