szaszm commented on a change in pull request #1225:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1225#discussion_r768710368
##########
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:
Good point. I would go for `system_clock` in that case, for simplicity.
I think that these timestamps are just system timestamps anyway.
--
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]