Update src/Common/AsynchronousMetrics.cpp

This commit is contained in:
Sergei Trifonov 2023-06-02 11:18:46 +02:00 committed by GitHub
parent c4c8dbca2d
commit 16be379fa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -950,7 +950,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
auto space = line.find_first_of(" ");
if (line.rfind("max", 0) == std::string::npos)
if (line.rfind("max", space) == std::string::npos)
{
auto field1 = line.substr(0, space);
quota = std::stoull(field1);