martinzink commented on a change in pull request #1225:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1225#discussion_r769572005
##########
File path: extensions/sftp/processors/ListSFTP.cpp
##########
@@ -359,21 +360,21 @@ bool ListSFTP::filterFile(const std::string& parent_path,
const std::string& fil
/* Age */
time_t now = time(nullptr);
- uint64_t file_age = (now - attrs.mtime) * 1000;
+ std::chrono::milliseconds file_age = std::chrono::seconds(now - attrs.mtime);
Review comment:
changed to `auto file_age =
std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now()
- std::chrono::system_clock::from_time_t(attrs.mtime));` (milliseconds because
it will be printed out later) in
https://github.com/apache/nifi-minifi-cpp/pull/1225/commits/78f8658fde802c73a5965dd734a544acbc37dca3
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]