71174: FileSizePipe 'jedec' standard

This commit is contained in:
Kristof De Langhe
2020-06-10 10:32:58 +02:00
parent b79a3d37f3
commit ce04825c4a

View File

@@ -14,6 +14,6 @@ import * as fileSize from 'filesize';
@Pipe({ name: 'dsFileSize' })
export class FileSizePipe implements PipeTransform {
transform(bytes: number = 0, precision: number = 2): string {
return fileSize(bytes, { standard: 'iec', round: precision });
return fileSize(bytes, { standard: 'jedec', round: precision });
}
}