Don't allow counter became 0

This commit is contained in:
EVAST9919 2017-10-01 23:38:11 +03:00
parent 2f852d705e
commit b62f2437ac
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ protected override void Update()
var currentTime = Clock.CurrentTime;
if (currentTime < endTime)
{
int currentSecond = (int)Math.Floor((endTime - Clock.CurrentTime) / 1000.0);
int currentSecond = (int)Math.Ceiling((endTime - Clock.CurrentTime) / 1000.0);
if (currentSecond != previousSecond)
{
counter.Text = currentSecond.ToString();