File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -55,20 +55,24 @@ export function getAllDiskDisplayItems(
5555 const seen = new Set < number > ( )
5656 const uniqueFs = fsSize . filter ( ( fs ) => {
5757 if ( fs . size <= 0 || seen . has ( fs . size ) ) return false
58+ if ( storageMount && fs . mount === '/app/storage' ) return false
5859 seen . add ( fs . size )
5960 return true
6061 } )
6162 const realDevices = uniqueFs . filter ( ( fs ) => fs . fs . startsWith ( '/dev/' ) )
6263 const displayFs = realDevices . length > 0 ? realDevices : uniqueFs
63- return displayFs . map ( ( fs ) => ( {
64- label : fs . fs || 'Unknown' ,
65- value : fs . use || 0 ,
66- total : formatBytes ( fs . size ) ,
67- used : formatBytes ( fs . used ) ,
68- subtext : `${ formatBytes ( fs . used ) } / ${ formatBytes ( fs . size ) } ` ,
69- totalBytes : fs . size ,
70- usedBytes : fs . used ,
71- } ) )
64+ return [
65+ ...storageMountItem ,
66+ ...displayFs . map ( ( fs ) => ( {
67+ label : fs . fs || 'Unknown' ,
68+ value : fs . use || 0 ,
69+ total : formatBytes ( fs . size ) ,
70+ used : formatBytes ( fs . used ) ,
71+ subtext : `${ formatBytes ( fs . used ) } / ${ formatBytes ( fs . size ) } ` ,
72+ totalBytes : fs . size ,
73+ usedBytes : fs . used ,
74+ } ) ) ,
75+ ]
7276 }
7377
7478 return [ ]
You can’t perform that action at this time.
0 commit comments