Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Sep 21, 2023

The default was previously on Nextcloud core set to true, so bytes were formatted using base 2. (But the wrong unit was used, e.g. 1024 byte were formatted as 1 KB). This reverts the default to format sizes using the binary format (1024 = 1 KiB).

@susnux susnux added type: bug 🐛 Something isn't working 3. to review 3️⃣ Waiting for reviews labels Sep 21, 2023
@susnux susnux requested review from skjnldsv and szaimen September 21, 2023 23:32
The default was previously on Nextcloud core set to true, so bytes were formatted using base 2.
(But the wrong unit was used, e.g. 1024 byte were formatted as 1 KB).
This reverts the default to format sizes using the binary format (1024 = 1 KiB).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/default-for-format-size branch from 53a0fbe to 292c784 Compare September 21, 2023 23:32
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #770 (292c784) into master (6d59148) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #770   +/-   ##
=======================================
  Coverage   77.33%   77.33%           
=======================================
  Files          17       17           
  Lines         406      406           
  Branches      109      109           
=======================================
  Hits          314      314           
  Misses         91       91           
  Partials        1        1           
Files Changed Coverage Δ
lib/humanfilesize.ts 100.00% <100.00%> (ø)

@susnux susnux merged commit 99c48b7 into master Sep 22, 2023
@susnux susnux deleted the fix/default-for-format-size branch September 22, 2023 09:09
@skjnldsv skjnldsv mentioned this pull request Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 3️⃣ Waiting for reviews type: bug 🐛 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants