mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: error about memoryReservation not set
This commit is contained in:
@@ -318,13 +318,13 @@ export const calculateResources = ({
|
|||||||
return {
|
return {
|
||||||
Limits: {
|
Limits: {
|
||||||
MemoryBytes: memoryLimit ? memoryLimit * 1024 * 1024 : undefined,
|
MemoryBytes: memoryLimit ? memoryLimit * 1024 * 1024 : undefined,
|
||||||
NanoCPUs: memoryLimit ? (cpuLimit || 1) * 1000 * 1000 * 1000 : undefined,
|
NanoCPUs: cpuLimit ? (cpuLimit || 1) * 1000 * 1000 * 1000 : undefined,
|
||||||
},
|
},
|
||||||
Reservations: {
|
Reservations: {
|
||||||
MemoryBytes: memoryLimit
|
MemoryBytes: memoryReservation
|
||||||
? (memoryReservation || 1) * 1024 * 1024
|
? (memoryReservation || 1) * 1024 * 1024
|
||||||
: undefined,
|
: undefined,
|
||||||
NanoCPUs: memoryLimit
|
NanoCPUs: cpuReservation
|
||||||
? (cpuReservation || 1) * 1000 * 1000 * 1000
|
? (cpuReservation || 1) * 1000 * 1000 * 1000
|
||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user