We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19cd619 commit 0a82155Copy full SHA for 0a82155
CMakeLists.txt
@@ -31,7 +31,7 @@ endif()
31
32
# Define project
33
project(Monitoring
34
- VERSION 3.8.10
+ VERSION 3.8.11
35
DESCRIPTION "O2 Monitoring library"
36
LANGUAGES CXX
37
)
src/ProcessMonitor.cxx
@@ -142,7 +142,7 @@ double ProcessMonitor::splitStatusLineAndRetriveValue(const std::string& line) c
142
std::istringstream iss(line);
143
std::vector<std::string> tokens{std::istream_iterator<std::string>{iss},
144
std::istream_iterator<std::string>{}};
145
- return std::stod(tokens[1]);
+ return tokens.size() < 2 ? -1.0 : std::stod(tokens.at(1));
146
}
147
148
std::vector<Metric> ProcessMonitor::getPerformanceMetrics()
0 commit comments