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:
|
||||
NODE_ENV: production
|
||||
volumes:
|
||||
- /:/host/root:ro
|
||||
- /:/mnt/host:ro
|
||||
- /proc:/host/proc
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ${PWD}/.env:/app/.env
|
||||
|
|
|
@ -37,7 +37,7 @@ export class SystemExecutors {
|
|||
}
|
||||
|
||||
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 {
|
||||
cpu: { load: currentLoad },
|
||||
|
|
Loading…
Add table
Reference in a new issue