adamdebreceni commented on a change in pull request #1225:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1225#discussion_r767815123
##########
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);
if (file_age < minimum_file_age_) {
logger_->log_debug("Ignoring \"%s/%s\" because it is younger than the
Minimum File Age: %ld ms < %lu ms",
parent_path.c_str(),
filename.c_str(),
- file_age,
- minimum_file_age_);
+ file_age.count(),
Review comment:
`%ld` might not be the right one here (it seems it never was)
--
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]