mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
Merge pull request #1066 from yangkaa/disk-total-err
Fix Bug: disk statistic error
This commit is contained in:
commit
c0bb3cedaa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user