console icon indicating copy to clipboard operation
console copied to clipboard

counts/pod calculate err in project base info

Open moweiwei opened this issue 3 years ago • 1 comments

General remarks

/bug

Describe the bug counts/pod calculate err in project base info

count/pods is 2, but show 2k, Not just pods, but other resources too

url: /demo/clusters/host/projects/demo/base-info 1

2

  const handleUsedValue = usedValue => {
    if (totalUnit && !usedUnit) {
      const unitValue =
        ICON_TYPES[name] || !Unit[totalUnit] ? 1 : Unit[totalUnit]
      return `${usedValue / unitValue}${usedValue > 0 ? totalUnit : ''}`
    }

    return usedValue
  }

moweiwei avatar Apr 06 '22 08:04 moweiwei

/assign @weili520

harrisonliu5 avatar Apr 07 '22 08:04 harrisonliu5