clang format

This commit is contained in:
Lev Dragunov 2020-08-20 13:29:31 +03:00
parent cb8f54c590
commit a4258bb989
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ class ServiceHandlerInterface
virtual ~ServiceHandlerInterface() {} virtual ~ServiceHandlerInterface() {}
virtual engine::Status RunQuery(api::ParsedURL parsed_url, virtual engine::Status RunQuery(api::ParsedURL parsed_url,
osrm::engine::api::ResultT &result) = 0; osrm::engine::api::ResultT &result) = 0;
virtual const engine::EngineInfo & GetEngineInfo() const = 0; virtual const engine::EngineInfo &GetEngineInfo() const = 0;
virtual const HandlersCounter GetUsage() const = 0; virtual const HandlersCounter GetUsage() const = 0;
virtual std::uint32_t GetLoad() const = 0; virtual std::uint32_t GetLoad() const = 0;
}; };

View File

@ -28,8 +28,8 @@ void MonitoringRequestHandler::HandleRequest(const http::request &, http::reply
auto counters = service_handler->GetUsage(); auto counters = service_handler->GetUsage();
for (auto counter : counters) for (auto counter : counters)
{ {
out_stream << "osrm_http_requests_count{plugin=\"" << counter.first << "\"} " << counter.second out_stream << "osrm_http_requests_count{plugin=\"" << counter.first << "\"} "
<< "\n"; << counter.second << "\n";
} }
out_stream << "osrm_workers_busy " << service_handler->GetLoad() << "\n"; out_stream << "osrm_workers_busy " << service_handler->GetLoad() << "\n";