DUBAI: fix percent negative
This commit is contained in:
parent
776aa8df4a
commit
2801a06668
4 changed files with 45 additions and 5 deletions
|
|
@ -376,6 +376,27 @@
|
||||||
|
|
||||||
; percent
|
; percent
|
||||||
If ShowCountDownAsPercent = 1 Then
|
If ShowCountDownAsPercent = 1 Then
|
||||||
|
|
||||||
|
DEBUGVAR InitCNT
|
||||||
|
If InitCNT = "" Then
|
||||||
|
Var InitCNT = BREW_CNT
|
||||||
|
DEBUGVAR "InitCNT Empty"
|
||||||
|
Else
|
||||||
|
If InitCNT = 0 Then
|
||||||
|
|
||||||
|
If BREW_CNT > 0 Then
|
||||||
|
Var InitCNT = BREW_CNT
|
||||||
|
DEBUGVAR "BREW_CNT Slow set"
|
||||||
|
Else
|
||||||
|
Var InitCNT = ShowCountDownBrewing
|
||||||
|
DEBUGVAR "BREW_CNT Still not set"
|
||||||
|
DEBUGVAR BREW_CNT
|
||||||
|
DEBUGVAR ShowCountDownBrewing
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
Var XPercent = InitCNT - ShowCountDownBrewing
|
Var XPercent = InitCNT - ShowCountDownBrewing
|
||||||
If ShowCountDownBrewing <= 5 Then
|
If ShowCountDownBrewing <= 5 Then
|
||||||
Var XPercent = 95
|
Var XPercent = 95
|
||||||
|
|
|
||||||
|
|
@ -717,6 +717,25 @@
|
||||||
|
|
||||||
; percent
|
; percent
|
||||||
If ShowCountDownAsPercent = 1 Then
|
If ShowCountDownAsPercent = 1 Then
|
||||||
|
DEBUGVAR InitCNT
|
||||||
|
If InitCNT = "" Then
|
||||||
|
Var InitCNT = BREW_CNT
|
||||||
|
DEBUGVAR "InitCNT Empty"
|
||||||
|
Else
|
||||||
|
If InitCNT = 0 Then
|
||||||
|
|
||||||
|
If BREW_CNT > 0 Then
|
||||||
|
Var InitCNT = BREW_CNT
|
||||||
|
DEBUGVAR "BREW_CNT Slow set"
|
||||||
|
Else
|
||||||
|
Var InitCNT = ShowCountDownBrewing
|
||||||
|
DEBUGVAR "BREW_CNT Still not set"
|
||||||
|
DEBUGVAR BREW_CNT
|
||||||
|
DEBUGVAR ShowCountDownBrewing
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
Var XPercent = InitCNT - ShowCountDownBrewing
|
Var XPercent = InitCNT - ShowCountDownBrewing
|
||||||
If ShowCountDownBrewing <= 5 Then
|
If ShowCountDownBrewing <= 5 Then
|
||||||
Var XPercent = 95
|
Var XPercent = 95
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
If CountryName = "UnitedArabEmirates Dubai" Then
|
If CountryName = "UnitedArabEmirates Dubai" Then
|
||||||
Var brewing3ContiInter = CountryRootPath + "/xml/page_brewing3Conti.lxml"
|
Var brewing3ContiInter = CountryRootPath + "/xml/page_brewing3Conti.xml"
|
||||||
|
|
||||||
Open brewing3ContiInter
|
Open brewing3ContiInter
|
||||||
Else
|
Else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue