-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Labels
area - properties windowFeatures or bug reports for the file permissions pageFeatures or bug reports for the file permissions page
Description
Description
Related to #10075, opening as a separate issue as this is a bug and not a feature.
Previously found in #16882, Files uses incorrect size unit mappings, as it internally calculates sizes in base-two (so the appropriate units are kibibytes, mebibytes, etc.) but it shows to the user base-ten units (kilobytes, megabytes) instead.
This causes a disparity in the screenshot of #16882 where Files UI determined that 1007 GB is smaller than 1 TB, so it showed the size in GB rather than TB.
Relevant code:
| private static readonly FrozenDictionary<string, string> units = new Dictionary<string, string> |
Steps To Reproduce
See screenshot in #16882.
Files Version
Found on main branch, might have affected released versions
Windows Version
Not relevant
User ID
No response
Log File
Not relevant
Metadata
Metadata
Assignees
Labels
area - properties windowFeatures or bug reports for the file permissions pageFeatures or bug reports for the file permissions page
Type
Projects
Status
✅ Done