fix(worker): display disk usage right
This commit is contained in:
parent
ab71d75fd1
commit
fb861e26be
1 changed files with 1 additions and 2 deletions
|
@ -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 },
|
||||
|
|
Loading…
Add table
Reference in a new issue