From ce3c0f409ada4ed0d161c41268d032aea15fe729 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 20 May 2021 10:38:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=E7=9B=91=E6=8E=A7=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E6=B5=81=E9=87=8F=E4=BD=BF=E7=94=A8=E7=A7=92=E6=9D=A5?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/clusters/cluster/node/monitor/trafficIn.go | 4 ++-- .../default/clusters/cluster/node/monitor/trafficOut.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/web/actions/default/clusters/cluster/node/monitor/trafficIn.go b/internal/web/actions/default/clusters/cluster/node/monitor/trafficIn.go index bad2a865..e68c0c43 100644 --- a/internal/web/actions/default/clusters/cluster/node/monitor/trafficIn.go +++ b/internal/web/actions/default/clusters/cluster/node/monitor/trafficIn.go @@ -55,8 +55,8 @@ func (this *TrafficInAction) RunPost(params struct { if ok { result = append(result, maps.Map{ "label": timeutil.FormatTime("H:i", timestamp), - "value": total, - "text": numberutils.FormatBytes(total), + "value": total / 60, + "text": numberutils.FormatBytes(total / 60), }) } else { result = append(result, maps.Map{ diff --git a/internal/web/actions/default/clusters/cluster/node/monitor/trafficOut.go b/internal/web/actions/default/clusters/cluster/node/monitor/trafficOut.go index 4f1a975b..f0752428 100644 --- a/internal/web/actions/default/clusters/cluster/node/monitor/trafficOut.go +++ b/internal/web/actions/default/clusters/cluster/node/monitor/trafficOut.go @@ -55,8 +55,8 @@ func (this *TrafficOutAction) RunPost(params struct { if ok { result = append(result, maps.Map{ "label": timeutil.FormatTime("H:i", timestamp), - "value": total, - "text": numberutils.FormatBytes(total), + "value": total / 60, + "text": numberutils.FormatBytes(total / 60), }) } else { result = append(result, maps.Map{