Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Apr 30, 2024
1 parent 0e5a7d8 commit 19a720e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2i-hub/CARMACloudPlugin/src/CARMACloudPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ void CARMACloudPlugin::HandleCARMARequest(tsm4Message &msg, routeable_message &r
strcpy(bounds_str, "");

// get current time
std::time_t tm = getClock()->nowInMilliseconds() / 60 - fetchtime * 24 * 60; // T minus 24 hours in min
std::time_t tm = getClock()->nowInMilliseconds() / 1000 / 60 - fetchtime * 24 * 60; // T minus 24 hours in min

while (cnt < totBounds)
{

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(tm, 0); // Replace tm with 0 if negative
auto oldest = std::max(static_cast<uint32_t>(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;
Expand Down

0 comments on commit 19a720e

Please sign in to comment.