Skip to content

Commit

Permalink
fix timestamp truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
Archez committed Jan 23, 2024
1 parent 63cf361 commit e1ccccd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions soh/soh/OTRGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,7 @@ extern "C" uint64_t GetUnixTimestamp() {
auto time = std::chrono::system_clock::now();
auto since_epoch = time.time_since_epoch();
auto millis = std::chrono::duration_cast<std::chrono::milliseconds>(since_epoch);
long now = millis.count();
return now;
return (uint64_t)millis.count();
}

// C->C++ Bridge
Expand Down

0 comments on commit e1ccccd

Please sign in to comment.