fix(worker): display disk usage right

This commit is contained in:
Stavros 2023-11-22 15:13:38 +02:00 committed by Nicolas Meienberger
parent ab71d75fd1
commit fb861e26be

View file

@ -36,8 +36,7 @@ export class SystemExecutors {
this.logger.error(`Unable to read /host/proc/meminfo: ${e}`);
}
const disks = await si.fsSize();
const disk0 = disks.find((disk) => disk.mount.startsWith('/mnt/host') && disk.type === 'fakeowner');
const [disk0] = await si.fsSize('/mnt/host');
return {
cpu: { load: currentLoad },