diff --git a/arangod/GeneralServer/RestHandler.cpp b/arangod/GeneralServer/RestHandler.cpp index 726fd6600d..9062ce7c14 100644 --- a/arangod/GeneralServer/RestHandler.cpp +++ b/arangod/GeneralServer/RestHandler.cpp @@ -64,7 +64,8 @@ RestHandler::RestHandler(GeneralRequest* request, GeneralResponse* response) int RestHandler::prepareEngine() { requestStatisticsAgentSetRequestStart(); - + requestStatisticsAgentSetRequestEnd(); // set end immeadiately so we + // do not get netative statistics #ifdef USE_DEV_TIMERS TRI_request_statistics_t::STATS = _statistics; #endif diff --git a/arangod/Statistics/statistics.h b/arangod/Statistics/statistics.h index a4dbcd29ff..40923a0493 100644 --- a/arangod/Statistics/statistics.h +++ b/arangod/Statistics/statistics.h @@ -82,9 +82,10 @@ struct TRI_request_statistics_t { std::string to_string() { std::stringstream ss; - ss << std::boolalpha << std::setprecision(10) << "statistics " + ss << std::boolalpha << std::setprecision(20) << "statistics " << std::endl << "_readStart " << _readStart << std::endl + << "_readEnd " << _readEnd << std::endl << "_queueStart " << _queueStart << std::endl << "_queueEnd " << _queueEnd << std::endl << "_requestStart " << _requestStart << std::endl