[
https://issues.apache.org/jira/browse/NIFI-11083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Stieglitz updated NIFI-11083:
------------------------------------
Description:
While refactoring the unit tests in NIFI-11035 it was discovered that
{code:java}
nifi/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/util/FormatUtils.java
{code} method
{code:java}
makeWholeNumberTime
{code}
is not converting milliseconds to nanoseconds correctly. The given unit test
was where milliseconds was 0.75, and in nanoseconds should be 750000 but 750
was returned.
was:While refactoring the unit tests in NIFI-11035 it was discovered that
nifi/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/util/FormatUtils.java
method makeWholeNumberTime is not converting milliseconds to nanoseconds
correctly. The given unit test was where milliseconds was 0.75, and in
nanoseconds should be 750000 but 750 was returned.
> FormatUtils not converting milliseconds to nanoseconds correctly
> ----------------------------------------------------------------
>
> Key: NIFI-11083
> URL: https://issues.apache.org/jira/browse/NIFI-11083
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Daniel Stieglitz
> Priority: Major
>
> While refactoring the unit tests in NIFI-11035 it was discovered that
> {code:java}
> nifi/nifi-commons/nifi-utils/src/main/java/org/apache/nifi/util/FormatUtils.java
> {code} method
> {code:java}
> makeWholeNumberTime
> {code}
> is not converting milliseconds to nanoseconds correctly. The given unit test
> was where milliseconds was 0.75, and in nanoseconds should be 750000 but 750
> was returned.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)