From 57c5f0cc1572713bf53895b2e02602e7dc599fb1 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 2 Aug 2023 12:00:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=8A=A5=E7=A1=AC=E7=9B=98=E5=86=99?= =?UTF-8?q?=E5=85=A5=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/node_status_executor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/nodes/node_status_executor.go b/internal/nodes/node_status_executor.go index cb56c59..4378112 100644 --- a/internal/nodes/node_status_executor.go +++ b/internal/nodes/node_status_executor.go @@ -82,8 +82,7 @@ func (this *NodeStatusExecutor) update() { status.BuildVersionCode = utils.VersionToLong(teaconst.Version) status.OS = runtime.GOOS status.Arch = runtime.GOARCH - exe, _ := os.Executable() - status.ExePath = exe + status.ExePath, _ = os.Executable() status.ConfigVersion = sharedNodeConfig.Version status.IsActive = true status.ConnectionCount = sharedListenerManager.TotalActiveConnections() @@ -208,6 +207,8 @@ func (this *NodeStatusExecutor) updateCPU(status *nodeconfigs.NodeStatus) { // 更新硬盘 func (this *NodeStatusExecutor) updateDisk(status *nodeconfigs.NodeStatus) { + status.DiskWritingSpeedMB = int(fsutils.DiskSpeedMB) + partitions, err := disk.Partitions(false) if err != nil { remotelogs.Error("NODE_STATUS", err.Error())