From 558812d64d5853bc4dff677958eaa48d3418330a Mon Sep 17 00:00:00 2001 From: foursevenlove Date: Thu, 28 Jul 2022 19:06:11 +0800 Subject: [PATCH] Fix: Making syntax simple --- references/cli/system.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/references/cli/system.go b/references/cli/system.go index 077baafff..d817fe9a8 100644 --- a/references/cli/system.go +++ b/references/cli/system.go @@ -167,8 +167,8 @@ func NewSystemInfoCommand(c common.Args) *cobra.Command { // ComputeMetricByDeploymentName computes cpu and memory metric of deployment func ComputeMetricByDeploymentName(deployments *v1.DeploymentList, podMetricsList *v1beta1.PodMetricsList) (cpuMetricMap, memMetricMap map[string]int64) { - cpuMetricMap = make(map[string]int64, 0) - memMetricMap = make(map[string]int64, 0) + cpuMetricMap = make(map[string]int64) + memMetricMap = make(map[string]int64) for _, deploy := range deployments.Items { cpuUsage, memUsage := int64(0), int64(0) for _, pod := range podMetricsList.Items {