From 6abc14e778ce212d2762d88b95d3bc080ca2c377 Mon Sep 17 00:00:00 2001 From: dan-du-car Date: Tue, 30 Apr 2024 14:42:05 -0400 Subject: [PATCH] update --- src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp b/src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp index 69e3d1a41..fe6ff1088 100644 --- a/src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp +++ b/src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp @@ -65,7 +65,7 @@ void CARMACloudPlugin::HandleCARMARequest(tsm4Message &msg, routeable_message &r strcpy(bounds_str, ""); // get current time - std::time_t tm = getClock()->nowInMilliseconds() / 1000 / 60 - fetchtime * 24 * 60; // T minus 24 hours in min + uint32_t tm = getClock()->nowInSeconds() / 60 - fetchtime * 24 * 60; // T minus 24 hours in min while (cnt < totBounds) { @@ -73,7 +73,7 @@ void CARMACloudPlugin::HandleCARMARequest(tsm4Message &msg, routeable_message &r long lat = carmaRequest->body.choice.tcrV01.bounds.list.array[cnt]->reflat; long longg = carmaRequest->body.choice.tcrV01.bounds.list.array[cnt]->reflon; - auto oldest = std::max(static_cast(tm), 0); // Replace tm with 0 if negative + auto oldest = std::max(tm, 0); // Replace tm with 0 if negative long dtx0 = carmaRequest->body.choice.tcrV01.bounds.list.array[cnt]->offsets.list.array[0]->deltax; long dty0 = carmaRequest->body.choice.tcrV01.bounds.list.array[cnt]->offsets.list.array[0]->deltay;