fix(worker): display disk usage right

This commit is contained in:
Stavros 2023-11-20 19:54:11 +02:00
parent c18b00e78b
commit bd336c652e
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 },