Fixed bug reported reported by Charlie Langrall in parse_threshold() function.
This is in a code common to many plugins that is bcoming part of Naglio.pm
library. The bug dates back to 2009 or 2010 when support for specifying
threshold as range was added, so bug would only have affected those who
try to specify range threshold and only in some cases.