Skip to content

Commit

Permalink
Update libminifi/src/utils/file/FileUtils.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Márton Szász <[email protected]>
  • Loading branch information
martinzink and szaszm authored Aug 23, 2023
1 parent 8dc4bb2 commit fb5dbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libminifi/src/utils/file/FileUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ std::chrono::file_clock::time_point from_sys(std::chrono::system_clock::time_poi

#ifdef WIN32
std::chrono::file_clock::time_point fileTimePointFromFileTime(const FILETIME& filetime) {
static_assert(std::ratio_equal_v<std::chrono::file_clock::duration::period, std::ratio<1, 10000000>>, "file_clock duration must be 100 nanoseconds");
static_assert(std::ratio_equal_v<std::chrono::file_clock::duration::period, std::ratio<1, 10000000>>, "file_clock duration tick period must be 100 nanoseconds");
std::chrono::file_clock::duration duration{(static_cast<int64_t>(filetime.dwHighDateTime) << 32) | filetime.dwLowDateTime};
return std::chrono::file_clock::time_point{duration};
}
Expand Down

0 comments on commit fb5dbbd

Please sign in to comment.