diff --git a/Control/AthenaMonitoring/src/AthMonBench.cxx b/Control/AthenaMonitoring/src/AthMonBench.cxx index c338867923f5c8780b49b8ad54d5b018fe4e61e9..893bce15653ca78ae7b5fb2538eb0880664005fd 100644 --- a/Control/AthenaMonitoring/src/AthMonBench.cxx +++ b/Control/AthenaMonitoring/src/AthMonBench.cxx @@ -5,6 +5,7 @@ #include "AthMonBench.h" #include <iostream> #include <limits> +#include <string> #include <fstream> namespace{ @@ -27,6 +28,7 @@ AthMonBench::currentVMem(){ if (line.starts_with(search)) { result = std::stol(line.substr(search.size())); result = multiply<1024L>(result); + break; } } return result;