Skip to content

Commit 2087507

Browse files
committed
docs(changelog): add entry regarding file size calculation change
1 parent 8a8b9b9 commit 2087507

3 files changed

Lines changed: 5 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- Fixed file size calculations to use SI decimal units (divide by 1000)
810

911
## [1.6.0] - 2026-01-30
1012
### Added

app/src/main/kotlin/org/fossify/filemanager/extensions/Long.kt

Lines changed: 0 additions & 14 deletions
This file was deleted.

app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import org.fossify.filemanager.adapters.ItemsAdapter
4646
import org.fossify.filemanager.databinding.ItemStorageVolumeBinding
4747
import org.fossify.filemanager.databinding.StorageFragmentBinding
4848
import org.fossify.filemanager.extensions.config
49-
import org.fossify.filemanager.extensions.formatSizeThousand
49+
5050
import org.fossify.filemanager.extensions.getAllVolumeNames
5151
import org.fossify.filemanager.helpers.ARCHIVES
5252
import org.fossify.filemanager.helpers.AUDIO
@@ -331,8 +331,8 @@ class StorageFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
331331
mainStorageUsageProgressbar.progress = ((totalStorageSpace - freeStorageSpace) / SIZE_DIVIDER).toInt()
332332

333333
mainStorageUsageProgressbar.beVisible()
334-
freeSpaceValue.text = freeStorageSpace.formatSizeThousand()
335-
totalSpace.text = String.format(context.getString(R.string.total_storage), totalStorageSpace.formatSizeThousand())
334+
freeSpaceValue.text = freeStorageSpace.formatSize()
335+
totalSpace.text = String.format(context.getString(R.string.total_storage), totalStorageSpace.formatSize())
336336
freeSpaceLabel.beVisible()
337337
getSizes(volumeName)
338338
}

0 commit comments

Comments
 (0)