mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
wrong allocable memory
This commit is contained in:
parent
1b9d4344f4
commit
7170af322d
@ -493,7 +493,8 @@ func NewAllocMemory(ctx context.Context, statusCli *client.AppRuntimeSyncClient,
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
am.allcm = util.Int64(tenantUsedResource.MemoryRequest)
|
||||
allocm := tenant.LimitMemory - int(tenantUsedResource.MemoryLimit)
|
||||
am.allcm = util.Int64(int64(allocm))
|
||||
} else {
|
||||
allcm, err := ClusterAllocMemory(ctx)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user