Skip to content

Commit

Permalink
fix position formating
Browse files Browse the repository at this point in the history
- ensure number formating is in US locale
  • Loading branch information
izderadicka committed May 24, 2020
1 parent 829380a commit 26bff0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class PositionClient(val serverUrl:String, val token:String, val group: String?)

private fun encodeMessage(filePath: String, position: Double):String =
lastFile.let {
fun fmt(p:Double) = "%.3f".format(p)
fun fmt(p:Double) = "%.3f".format(java.util.Locale.US, p)
return if (it == filePath) {
"${fmt(position)}|"
} else {
Expand Down

0 comments on commit 26bff0f

Please sign in to comment.