mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-04 10:21:16 +00:00
Merge commit '264c5c1b991737df5457c6a632ed0d08f0f0ea6d'
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
|
||||
public func dataSizeString(_ size: Int) -> String {
|
||||
return dataSizeString(Int64(size))
|
||||
}
|
||||
|
||||
public func dataSizeString(_ size: Int64) -> String {
|
||||
if size >= 1024 * 1024 * 1024 {
|
||||
let remainder = (size % (1024 * 1024 * 1024)) / (1024 * 1024 * 102)
|
||||
if remainder != 0 {
|
||||
|
||||
Reference in New Issue
Block a user