Skip to content

Commit

Permalink
#353: Fixed incorrect byte counting
Browse files Browse the repository at this point in the history
  • Loading branch information
XITRIX committed Nov 18, 2024
1 parent 15efa33 commit 1bc94b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iTorrent/Utils/Extensions/SpeedFormat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ extension UInt64 {
var bitrateToHumanReadable: String {
let formatter = ByteCountFormatter()
formatter.allowedUnits = .useAll//.subtracting(.useBytes)
formatter.countStyle = .file //.binary
formatter.countStyle = .binary //.decimal
formatter.allowsNonnumericFormatting = false
return formatter.string(fromByteCount: Int64(self)).replacingOccurrences(of: "bytes", with: "B")
}
Expand Down

0 comments on commit 1bc94b5

Please sign in to comment.