Commit 0a2ddf3 1 parent a446f9b commit 0a2ddf3 Copy full SHA for 0a2ddf3
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,9 @@ export const getDynamicServerInfo = () => {
111
111
( { mount, type } ) => type !== 'squashfs' && mount === '/mnt/host'
112
112
) ?? sizes . find ( ( { mount } ) => mount === '/' )
113
113
) ?. used ?? 0 ;
114
- const validParts = blocks . filter ( ( { type } ) => type === 'part' ) ;
114
+ const validParts = blocks . filter (
115
+ ( { type } ) => type === 'part' || type === 'disk'
116
+ ) ;
115
117
116
118
let hostFound = false ;
117
119
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ export const bpsPrettyPrint = (bits: number) => {
13
13
} ;
14
14
15
15
export const bytePrettyPrint = ( byte : number ) : string => {
16
- return byte > 1024 * 1024 * 1024
16
+ return byte > 1024 * 1024 * 1024 * 1024 * 10
17
+ ? `${ ( byte / 1024 / 1024 / 1024 / 1024 ) . toFixed ( 1 ) } TiB`
18
+ : byte > 1024 * 1024 * 1024
17
19
? `${ ( byte / 1024 / 1024 / 1024 ) . toFixed ( 1 ) } GiB`
18
20
: byte > 1024 * 1024
19
21
? `${ ( byte / 1024 / 1024 ) . toFixed ( 1 ) } MiB`
You can’t perform that action at this time.
0 commit comments