Fixed language selection based on locale

This commit is contained in:
Pupil
2020-01-13 20:53:27 +09:00
parent ee87122bb2
commit 93228459d7
3 changed files with 5 additions and 6 deletions

View File

@@ -49,8 +49,7 @@ fun byteToString(byte: Long, precision : Int = 1) : String {
"GB",
"TB" //really?
)
var size = byte.toDouble()
var suffixIndex = 0
var size = byte.toDouble(); var suffixIndex = 0
while (size >= 1024) {
size /= 1024