author | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Wed, 31 Mar 2010 02:31:20 +0000 (22:31 -0400) | ||
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Wed, 31 Mar 2010 02:31:20 +0000 (22:31 -0400) | ||
commit | 120985853e71d6f20d598d1968f0df9db5163957 | |
tree | 32a7d29fd68cea965b1df25ae261d6a204ff169a | tree | snapshot |
parent | 08d8d119411fc875de56fac645b17152425eee46 | commit | diff |
check_snmp: Fix regression introduced in #1867716
Bug #1867716 fixed what it meant to fix: broken perfdata strings.
Unfortunately some users relied on half-broken perfdata string where at
least the first token was OK. This patch do a two-way conversion
(string to double then back to string) instead and use the conversion
result for the performance data.
A possible caveat is that the string may change where it normally
shouldn't but the result should be somewhat similar.
Bug #1867716 fixed what it meant to fix: broken perfdata strings.
Unfortunately some users relied on half-broken perfdata string where at
least the first token was OK. This patch do a two-way conversion
(string to double then back to string) instead and use the conversion
result for the performance data.
A possible caveat is that the string may change where it normally
shouldn't but the result should be somewhat similar.
NEWS | diff | blob | history | |
plugins/check_snmp.c | diff | blob | history |