no message

This commit is contained in:
Peter
2016-08-16 14:02:36 +03:00
parent a31c0a3e40
commit 766fcbbb95
316 changed files with 94427 additions and 11 deletions

View File

@@ -0,0 +1,10 @@
func dataSizeString(_ size: Int) -> String {
if size >= 1024 * 1024 {
return "\(size / (1024 * 1024)) MB"
} else if size >= 1024 {
return "\(size / 1024) KB"
} else {
return "\(size) B"
}
}