Code

check_snmp: Remove that is_numeric madness
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Wed, 1 Dec 2010 02:02:23 +0000 (21:02 -0500)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Wed, 1 Dec 2010 03:32:33 +0000 (22:32 -0500)
Original patch to make Timeticks works as in check_snmp v1.4.14, it turns
out is_numeric isn't so useful and treating all types as numeric works
best for backwards-compatibility. This is how it used to work in 1.4.14.

As a special case, I also make calculate_rate look up for numeric values
as it would otherwise return the last value instead.


No differences found