From 5af20bdc0fb515ff03aa3376639b955c930fc544 Mon Sep 17 00:00:00 2001 From: qiwang <1364512070@qq.com> Date: Thu, 27 Apr 2023 11:26:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BB=A3=E7=A0=81=E5=88=B02.0=E5=88=86?= =?UTF-8?q?=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PCM-CEPH/rpc/internal/logic/storagescreenlogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adaptor/PCM-STORAGE/PCM-CEPH/rpc/internal/logic/storagescreenlogic.go b/adaptor/PCM-STORAGE/PCM-CEPH/rpc/internal/logic/storagescreenlogic.go index 2f3feba8..be374c05 100644 --- a/adaptor/PCM-STORAGE/PCM-CEPH/rpc/internal/logic/storagescreenlogic.go +++ b/adaptor/PCM-STORAGE/PCM-CEPH/rpc/internal/logic/storagescreenlogic.go @@ -89,9 +89,9 @@ func (l *StorageScreenLogic) StorageScreen(in *ceph.StorageScreenReq) (*ceph.Sto var StorageUsed float32 //已使用量 var StorageUsing float32 //未使用量 UsageRate = (floatUsedStorageScale*1024 + 54.6) / (floatUsedStorageScale*1024 + floatUsingStorageScale*1024 + 54.6) - UsingRate = (floatUsingStorageScale*1024 + 54.6) / (floatUsedStorageScale*1024 + floatUsingStorageScale*1024 + 54.6) + UsingRate = (floatUsingStorageScale * 1024) / (floatUsedStorageScale*1024 + floatUsingStorageScale*1024 + 54.6) StorageUsed = floatUsedStorageScale*1024 + 54.6 - StorageUsing = floatUsingStorageScale*1024 + 54.6 + StorageUsing = floatUsingStorageScale * 1024 resp.UsageRate = UsageRate resp.UsingRate = UsingRate resp.StorageUsing = StorageUsing