fix: miss gpu_selector value in catalog
This commit is contained in:
+3
-2
@@ -21,11 +21,12 @@ export const handleBatchRequest = async (
|
||||
|
||||
export const convertFileSize = (
|
||||
sizeInBytes: number | undefined,
|
||||
prec?: number
|
||||
prec?: number,
|
||||
allowEmpty = false
|
||||
) => {
|
||||
const precision = prec ?? 1;
|
||||
if (!sizeInBytes) {
|
||||
return '0';
|
||||
return allowEmpty ? '' : '0';
|
||||
}
|
||||
if (sizeInBytes < 1024) {
|
||||
return `${sizeInBytes.toFixed(precision)} B`;
|
||||
|
||||
Reference in New Issue
Block a user