diff --git a/properties.go b/properties.go index 366ede5..7a073d8 100644 --- a/properties.go +++ b/properties.go @@ -398,7 +398,7 @@ func getIntVar(key string, defaultVal int) int { valueInt := defaultVal if valueString != "" { - i, err := strconv.Atoi(key) + i, err := strconv.Atoi(valueString) if err != nil { logfWarn("Failed to parse env property %s: %s is not "+