From 5f8d9aae7bbca703451f0f8242e9c44eeb5a910b Mon Sep 17 00:00:00 2001 From: Jupp Tscheak <jupp.tscheak@daimler.com> Date: Mon, 9 Aug 2021 16:56:43 +0200 Subject: [PATCH] Minor fix in function "SecondsToTime" with regard to target type using "Time". Signed-off-by: Jupp Tscheak <jupp.tscheak@daimler.com> --- MantleAPI/include/MantleAPI/Common/time_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MantleAPI/include/MantleAPI/Common/time_utils.h b/MantleAPI/include/MantleAPI/Common/time_utils.h index 17e54f6e..73a72722 100644 --- a/MantleAPI/include/MantleAPI/Common/time_utils.h +++ b/MantleAPI/include/MantleAPI/Common/time_utils.h @@ -28,7 +28,7 @@ using Time = units::time::millisecond_t; template <typename T> inline Time SecondsToTime(T duration) { - return units::convert<units::time::seconds, units::time::milliseconds>(duration); + return units::convert<units::time::seconds, Time>(duration); } /// @brief Converts input @ref Time to [s]. -- GitLab