1
0
mirror of https://github.com/kha7iq/pingme.git synced 2025-05-15 14:20:18 -07:00

fix: use strconv.ParseInt instead of strconv.Atoi

This commit is contained in:
Maik Brenke 2021-06-18 10:44:10 +02:00
parent 7186e5dd47
commit efac11a3ef

View File

@ -78,7 +78,7 @@ All configuration options are also available via environment variables.`,
if len(v) <= 0 {
return helpers.ErrChannel
}
k, errStr := strconv.Atoi(v)
k, errStr := strconv.ParseInt(v, 10, 64)
if errStr != nil {
return errStr
}