Skip to content
Snippets Groups Projects
Commit 778c25e5 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Hotfix: Allow t=0 to be a valid timestamp

parent 8f888b2c
No related branches found
No related tags found
No related merge requests found
Pipeline #5682 canceled
...@@ -37,7 +37,7 @@ TimeStamp::TimeStamp(const TimeStamp& _ts) : ...@@ -37,7 +37,7 @@ TimeStamp::TimeStamp(const TimeStamp& _ts) :
TimeStamp::TimeStamp(const double& _ts) : TimeStamp::TimeStamp(const double& _ts) :
time_stamp_nano_(_ts > 0 ? (unsigned long int)(_ts*1e9) : 0), time_stamp_nano_(_ts > 0 ? (unsigned long int)(_ts*1e9) : 0),
is_valid_(_ts > 0) is_valid_(_ts >= 0)
{ {
// //
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment