Go with:
```
local -i critical_timeout=$1
local -i warning_timeout=$1
```

No need to quote and make sure it's an integeter.