Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable27] Revert change that made OC.Util.humanFileSize return decimal sizes instead of binary #40605

Merged
merged 2 commits into from
Sep 25, 2023

Commits on Sep 24, 2023

  1. fix: Revert change that made OC.Util.humanFileSize return base 10 i…

    …nstead of base 2
    
    Previously the `OC.Util.humanFileSize` was returning file sizes base 2, meaning 1024 bytes = 1 KiB, but the `@nextcloud/files` library had a regression that set the default to base 10. Meaning 1000 bytes = 1 KB.
    
    This is fixed for current `@nextcloud/libraries` but for stable27 we need to fix this manually by wrapping the function.
    
    Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
    susnux committed Sep 24, 2023
    Configuration menu
    Copy the full SHA
    eb73c0b View commit details
    Browse the repository at this point in the history
  2. chore: Compile assets

    Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
    susnux committed Sep 24, 2023
    Configuration menu
    Copy the full SHA
    b7a939d View commit details
    Browse the repository at this point in the history