Skip to content

fix!(humanFileSize): Revert changes to default file sizes - #822

Merged
susnux merged 1 commit into
masterfrom
fix/files-sizes
Nov 3, 2023
Merged

fix!(humanFileSize): Revert changes to default file sizes#822
susnux merged 1 commit into
masterfrom
fix/files-sizes

Conversation

@susnux

Copy link
Copy Markdown
Contributor

(use binary sizes but decimal units)

For Nextcloud the current default is using binary sizes, like 1024 or 2048, but showing decimal units. Meaning 1024 bytes = 1 KB, like done on Windows and not like on Linux 1024 bytes = 1 KiB. There is also the option to show like on Apple: 1000 bytes = 1 KB and 1024 bytes = 1.024 KB

This is (again) breaking

… sizes but decimal units)
For Nextcloud the current default is using binary sizes, like 1024 or 2048, but showing decimal units.
Meaning 1024 bytes = 1 KB, like done on Windows and not like on Linux 1024 bytes = 1 KiB.
There is also the option to show like on Apple: 1000 bytes = 1 KB and 1024 bytes = 1.024 KB
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnuxsusnux added the 3. to review 3️⃣ Waiting for reviews label Nov 2, 2023
@susnux
susnux requested a review from skjnldsvNovember 2, 2023 14:30
@codecov

codecovBot commented Nov 2, 2023

Copy link
Copy Markdown

Codecov Report

Merging #822 (55065db) into master (5a568e2) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@ Coverage Diff @@## master #822 +/- ##
==========================================
+ Coverage 78.01% 78.06% +0.05% 
==========================================
Files 17 17 Lines 423 424 +1 Branches 112 113 +1 ==========================================
+ Hits 330 331 +1 
Misses 93 93 
FilesCoverage Δ
lib/humanfilesize.ts96.29% <100.00%> (+0.14%)⬆️

@skjnldsvskjnldsv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@susnux
susnux merged commit 29c15fc into masterNov 3, 2023
@susnux
susnux deleted the fix/files-sizes branch November 3, 2023 13:46
This was referenced Nov 3, 2023
Merged
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review3️⃣ Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@susnux@skjnldsv