ui(admin): fix oom killer setting toggle
This commit is contained in:
parent
f6cf4a1236
commit
450fba00bc
10 changed files with 18 additions and 23 deletions
|
@ -15,7 +15,7 @@ export interface CreateServerRequest {
|
|||
io: number;
|
||||
cpu: number;
|
||||
threads: string;
|
||||
oomDisabled: boolean;
|
||||
oomKiller: boolean;
|
||||
};
|
||||
|
||||
featureLimits: {
|
||||
|
@ -55,7 +55,7 @@ export default (r: CreateServerRequest, include: string[] = []): Promise<Server>
|
|||
memory: r.limits.memory,
|
||||
swap: r.limits.swap,
|
||||
threads: r.limits.threads,
|
||||
oom_killer: r.limits.oomDisabled,
|
||||
oom_killer: r.limits.oomKiller,
|
||||
},
|
||||
|
||||
feature_limits: {
|
||||
|
|
|
@ -55,7 +55,7 @@ export interface Server {
|
|||
io: number;
|
||||
cpu: number;
|
||||
threads: string | null;
|
||||
oomDisabled: boolean;
|
||||
oomKiller: boolean;
|
||||
};
|
||||
|
||||
featureLimits: {
|
||||
|
@ -105,7 +105,7 @@ export const rawDataToServer = ({ attributes }: FractalResponseData): Server =>
|
|||
io: attributes.limits.io,
|
||||
cpu: attributes.limits.cpu,
|
||||
threads: attributes.limits.threads,
|
||||
oomDisabled: attributes.limits.oom_disabled,
|
||||
oomKiller: attributes.limits.oom_killer,
|
||||
},
|
||||
|
||||
featureLimits: {
|
||||
|
|
|
@ -13,7 +13,7 @@ export interface Values {
|
|||
io: number;
|
||||
cpu: number;
|
||||
threads: string;
|
||||
oomDisabled: boolean;
|
||||
oomKiller: boolean;
|
||||
};
|
||||
|
||||
featureLimits: {
|
||||
|
@ -43,7 +43,7 @@ export default (id: number, server: Partial<Values>, include: string[] = []): Pr
|
|||
io: server.limits?.io,
|
||||
cpu: server.limits?.cpu,
|
||||
threads: server.limits?.threads,
|
||||
oom_killer: server.limits?.oomDisabled,
|
||||
oom_killer: server.limits?.oomKiller,
|
||||
},
|
||||
|
||||
feature_limits: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue