| 396 | } |
| 397 | |
| 398 | Value PerfdataValue::ParseWarnCritMinMaxToken(const std::vector<String>& tokens, std::vector<String>::size_type index, const String& description) |
| 399 | { |
| 400 | if (tokens.size() > index && tokens[index] != "U" && tokens[index] != "" && tokens[index].FindFirstNotOf("+-0123456789.eE") == String::NPos) |
| 401 | return Convert::ToDouble(tokens[index]); |
| 402 | else { |
| 403 | if (tokens.size() > index && tokens[index] != "") |
| 404 | Log(LogDebug, "PerfdataValue") |
| 405 | << "Ignoring unsupported perfdata " << description << " range, value: '" << tokens[index] << "'."; |
| 406 | return Empty; |
| 407 | } |
| 408 | } |
nothing calls this directly
no test coverage detected