fix: skip /data disk when identical to / on remote
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 35s
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 35s
This commit is contained in:
parent
7c712bc931
commit
97af7f4cce
@ -128,7 +128,7 @@ export class AdminServersService {
|
||||
const drParts = diskRoot.split(',');
|
||||
const ddParts = diskData.split(',');
|
||||
const disks: DiskInfo[] = [{ mount: '/', total: drParts[0] || '-', used: drParts[1] || '-', free: drParts[2] || '-', percent: parseInt(drParts[3]) || 0 }];
|
||||
if (ddParts.length >= 3) disks.push({ mount: '/data', total: ddParts[0], used: ddParts[1], free: ddParts[2], percent: parseInt(ddParts[3]) || 0 });
|
||||
if (ddParts.length >= 3 && diskData !== diskRoot) disks.push({ mount: '/data', total: ddParts[0], used: ddParts[1], free: ddParts[2], percent: parseInt(ddParts[3]) || 0 });
|
||||
|
||||
const procs: ProcessInfo[] = procRaw.split('\n').filter(l => /^\S+\s+\d+\s/.test(l)).map(parsePsLine);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user