mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
71174: FileSizePipe 'jedec' standard
This commit is contained in:
@@ -14,6 +14,6 @@ import * as fileSize from 'filesize';
|
|||||||
@Pipe({ name: 'dsFileSize' })
|
@Pipe({ name: 'dsFileSize' })
|
||||||
export class FileSizePipe implements PipeTransform {
|
export class FileSizePipe implements PipeTransform {
|
||||||
transform(bytes: number = 0, precision: number = 2): string {
|
transform(bytes: number = 0, precision: number = 2): string {
|
||||||
return fileSize(bytes, { standard: 'iec', round: precision });
|
return fileSize(bytes, { standard: 'jedec', round: precision });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user