mirror of
https://github.com/nushell/nushell.git
synced 2025-05-29 14:21:45 +02:00
Fix Exbibyte parsing (#15515)
Closes #15502 # Description The parsing of Exbibytes used the wrong base unit before converting. # User-Facing Changes `1EiB` etc. will now be parsed correctly # Tests + Formatting (-)
This commit is contained in:
parent
639f4bd499
commit
0f8f3bcf9a
@ -2784,7 +2784,7 @@ pub const FILESIZE_UNIT_GROUPS: &[UnitGroup] = &[
|
||||
(
|
||||
Unit::Filesize(FilesizeUnit::EiB),
|
||||
"EIB",
|
||||
Some((Unit::Filesize(FilesizeUnit::EiB), 1024)),
|
||||
Some((Unit::Filesize(FilesizeUnit::PiB), 1024)),
|
||||
),
|
||||
(Unit::Filesize(FilesizeUnit::B), "B", None),
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user