mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Update src/Common/AsynchronousMetrics.cpp
This commit is contained in:
parent
c4c8dbca2d
commit
16be379fa5
@ -950,7 +950,7 @@ void AsynchronousMetrics::update(TimePoint update_time)
|
|||||||
|
|
||||||
auto space = line.find_first_of(" ");
|
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);
|
auto field1 = line.substr(0, space);
|
||||||
quota = std::stoull(field1);
|
quota = std::stoull(field1);
|
||||||
|
Loading…
Reference in New Issue
Block a user