Skip to content

Commit

Permalink
Update diskUsageUtil.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored Jun 26, 2021
1 parent dafe036 commit 624f1e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/util/diskUsageUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const diskUsage: Readonly<Record<SupportedPlatform, (timeout: number) =>
.slice(1)
.map((disk) => disk.split(/\s+/))
.filter((disk) => filterMountPoint(disk[6]))
.filter((disk) => disk[1] !== 'devtmpfs' && disk[1] !== 'squashfs' && disk[1] !== 'tmpfs')
.filter((disk) => !['devtmpfs', 'squashfs', 'tmpfs', 'overlay'].includes(disk[1]))
.map(([_dev, _fs, size, used, avail, _pcent, target]) => {
return {
size: Number.parseInt(size, 10) * 1024,
Expand Down

0 comments on commit 624f1e9

Please sign in to comment.