diff --git a/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp b/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp index b650524..ca2c784 100644 --- a/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp +++ b/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp @@ -30,7 +30,9 @@ namespace OpenWifi { auto min_timestamp = std::min_element(points.begin(),points.end(),min_point_timestamp); auto max_timestamp = std::max_element(points.begin(),points.end(),min_point_timestamp); - std::cout << "Max-buckets: " << max_buckets->second << " min timestamp:" << min_timestamp->timestamp << " max timestamp:" << max_timestamp->timestamp << " interval: " << ((max_timestamp-min_timestamp) / max_buckets->second) << std::endl; + std::cout << "Max-buckets: " << max_buckets->second << " min timestamp:" << min_timestamp->timestamp << + " max timestamp:" << max_timestamp->timestamp << " interval: " << + ((max_timestamp->timestamp-min_timestamp->timestamp) / max_buckets->second) << std::endl; return max_buckets->second;