Merge pull request #49482 from alekar/fix-cast

Static cast std::atomic<size_t> to uint64_t to serialize.
This commit is contained in:
Alexey Milovidov 2023-05-04 18:37:43 +03:00 committed by GitHub
commit 088ce77096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ void Stats::writeJSON(DB::WriteBuffer & out, size_t concurrency, int64_t start_t
{
Value specific_results(kObjectType);
specific_results.AddMember("total_requests", Value(collector.requests), allocator);
specific_results.AddMember("total_requests", Value(static_cast<uint64_t>(collector.requests)), allocator);
auto [rps, bps] = collector.getThroughput(concurrency);
specific_results.AddMember("requests_per_second", Value(rps), allocator);