Merge pull request #1066 from yangkaa/disk-total-err

Fix Bug: disk statistic error
This commit is contained in:
yangkaa 2021-08-03 07:53:49 -05:00 committed by GitHub
commit c0bb3cedaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -359,7 +359,7 @@ func (t *TenantAction) GetTenantsResources(ctx context.Context, tr *api_model.Te
disk = int(mv.Sample.Value() / 1024)
}
if tenantID != "" {
result[tenantID]["disk"] = disk / 1024
result[tenantID]["disk"] = disk
}
}
return result, nil