diff options
Diffstat (limited to 'test/npdu_tests/npdu_test_service.cpp')
-rw-r--r-- | test/npdu_tests/npdu_test_service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/npdu_tests/npdu_test_service.cpp b/test/npdu_tests/npdu_test_service.cpp index 901084b..ccbdd66 100644 --- a/test/npdu_tests/npdu_test_service.cpp +++ b/test/npdu_tests/npdu_test_service.cpp @@ -92,7 +92,7 @@ void npdu_test_service::stop() VSOMEIP_INFO << "Stopping..."; if (!undershot_debounce_times_.empty()) { std::chrono::microseconds sum(0); - for (const auto t : undershot_debounce_times_) { + for (const auto& t : undershot_debounce_times_) { sum += t; } double average = static_cast<double>(sum.count())/static_cast<double>(undershot_debounce_times_.size()); |