minor changes in formatting

fixed the blinking text issue
This commit is contained in:
aditya-K2 2021-10-17 22:26:26 +05:30
parent 24f94fc4e5
commit c3ede5403e

View File

@ -1,19 +1,20 @@
package main package main
import ( import (
"strings"
"strconv" "strconv"
"strings"
) )
func strTime(e float64) string { func strTime(e float64) string {
a := int(e) a := int(e)
var min, seconds string var min, seconds string
if (a/60 < 10){ if a/60 < 10 {
min = "0" min = "0"
min += strconv.Itoa(a / 60) min += strconv.Itoa(a / 60)
} else { } else {
min = strconv.Itoa(a / 60) min = strconv.Itoa(a / 60)
} }
if (a%60 < 10){ if a%60 < 10 {
seconds = "0" seconds = "0"
seconds += strconv.Itoa(a % 60) seconds += strconv.Itoa(a % 60)
} else { } else {