Skip to content

Commit

Permalink
[FIX] fix app cpu unit failure bug
Browse files Browse the repository at this point in the history
  • Loading branch information
barnettZQG committed Jan 28, 2019
1 parent f75512f commit 5977310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ func (r *RuntimeServer) GetTenantResource(ctx context.Context, re *pb.TenantRequ
return &tr, nil
}
tr.RunningAppNum = int64(len(r.store.GetTenantRunningApp(re.TenantId)))
tr.CpuLimit = res.CPULimit * 1000
tr.CpuRequest = res.CPURequest * 1000
tr.CpuLimit = res.CPULimit
tr.CpuRequest = res.CPURequest
tr.MemoryLimit = res.MemoryLimit / 1024 / 1024
tr.MemoryRequest = res.MemoryRequest / 1024 / 1024
return &tr, nil
Expand Down

0 comments on commit 5977310

Please sign in to comment.