Skip to content

Commit 1b98bae

Browse files
committed
refactor: 실제 파일 크기의 단위 증가에 더 맞도록 개선
1 parent e1695be commit 1b98bae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DevLog/UI/Setting/SettingView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ struct SettingView: View {
194194
var value = Double(max(bytes, 0))
195195
var unitIndex = 0
196196

197-
while 1000 <= value && unitIndex < units.count - 1 {
197+
while 1024.0 <= value && unitIndex < units.count - 1 {
198198
value /= 1024.0
199199
unitIndex += 1
200200
}

0 commit comments

Comments
 (0)