commit
89b5e9851c
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ class DiaconnG8Service : DaggerService() {
|
||||||
val waitTime = (expectedEnd - System.currentTimeMillis()) / 1000
|
val waitTime = (expectedEnd - System.currentTimeMillis()) / 1000
|
||||||
bolusingEvent.status = String.format(rh.gs(R.string.waitingforestimatedbolusend), if (waitTime < 0) 0 else waitTime)
|
bolusingEvent.status = String.format(rh.gs(R.string.waitingforestimatedbolusend), if (waitTime < 0) 0 else waitTime)
|
||||||
var progressPecent = 0
|
var progressPecent = 0
|
||||||
if (totalwaitTime > waitTime) {
|
if (totalwaitTime > waitTime && totalwaitTime > 0) {
|
||||||
progressPecent = ((totalwaitTime - waitTime) * 100 / totalwaitTime).toInt()
|
progressPecent = ((totalwaitTime - waitTime) * 100 / totalwaitTime).toInt()
|
||||||
}
|
}
|
||||||
bolusingEvent.percent = min(progressPecent, 100)
|
bolusingEvent.percent = min(progressPecent, 100)
|
||||||
|
|
Loading…
Reference in a new issue