angular-pipes
angular-pipes copied to clipboard
BytesPipe does not support PB or EB
I'm submitting a ... (check one with "x")
[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
Current behavior
Passing in a bytes > 1 PB or passing a from unit of PB or EB will cause the pipe to fail.
Expected behavior
The pipe correctly transforms bytes to PB and EB
Minimal reproduction of the problem with instructions
Call BytesPipe using 8 EB.
new BytesPipe().transform(8, 2, "EB")
What is the motivation / use case for changing the behavior?
When dealing with large storage devices there are scenarios when bytes need to be translated to PB or EB.