martinzink commented on a change in pull request #1225:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1225#discussion_r769570140
##########
File path:
extensions/openwsman/processors/SourceInitiatedSubscriptionListener.cpp
##########
@@ -248,9 +248,9 @@ bool SourceInitiatedSubscriptionListener::loadState() {
return true;
}
-std::string
SourceInitiatedSubscriptionListener::Handler::millisecondsToXsdDuration(int64_t
milliseconds) {
+std::string
SourceInitiatedSubscriptionListener::Handler::millisecondsToXsdDuration(std::chrono::milliseconds
milliseconds) {
char buf[1024];
- snprintf(buf, sizeof(buf), "PT%" PRId64 ".%03" PRId64 "S", milliseconds /
1000, milliseconds % 1000);
+ snprintf(buf, sizeof(buf), "PT%" PRId64 ".%03" PRId64 "S",
milliseconds.count() / 1000, milliseconds.count() % 1000);
Review comment:
changed all printf like usages to use the `PRId64` and
`static_cast<int64_t>` in
https://github.com/apache/nifi-minifi-cpp/pull/1225/commits/78f8658fde802c73a5965dd734a544acbc37dca3
and
https://github.com/apache/nifi-minifi-cpp/pull/1225/commits/1fcbcc05ce27c9f7386c8f5b3a4a5267593c8fa1
--
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]