fix(worker): display disk usage right
This commit is contained in:
parent
c18b00e78b
commit
bd336c652e
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
volumes:
|
volumes:
|
||||||
- /:/host/root:ro
|
- /:/mnt/host:ro
|
||||||
- /proc:/host/proc
|
- /proc:/host/proc
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ${PWD}/.env:/app/.env
|
- ${PWD}/.env:/app/.env
|
||||||
|
|
|
@ -37,7 +37,7 @@ export class SystemExecutors {
|
||||||
}
|
}
|
||||||
|
|
||||||
const disks = await si.fsSize();
|
const disks = await si.fsSize();
|
||||||
const disk0 = disks.find((disk) => disk.mount.startsWith('/mnt/host') && disk.type === 'fakeowner');
|
const disk0 = disks.find((disk) => disk.mount.startsWith('/mnt/host'));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
cpu: { load: currentLoad },
|
cpu: { load: currentLoad },
|
||||||
|
|
Loading…
Add table
Reference in a new issue