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:
Stefan Holderbach 2025-04-07 13:36:23 +02:00 committed by GitHub
parent 639f4bd499
commit 0f8f3bcf9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),
];