Skip to content
Snippets Groups Projects
Commit ce04825c authored by Kristof De Langhe's avatar Kristof De Langhe
Browse files

71174: FileSizePipe 'jedec' standard

parent b79a3d37
No related merge requests found
......@@ -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 });
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment