[
https://issues.apache.org/jira/browse/FLINK-8708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16417436#comment-16417436
]
ASF GitHub Bot commented on FLINK-8708:
---------------------------------------
Github user StephanEwen commented on the issue:
https://github.com/apache/flink/pull/5776
Looks good, +1 to merge
> Unintended integer division in StandaloneThreadedGenerator
> ----------------------------------------------------------
>
> Key: FLINK-8708
> URL: https://issues.apache.org/jira/browse/FLINK-8708
> Project: Flink
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: vinoyang
> Priority: Minor
>
> In
> flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/statemachine/generator/StandaloneThreadedGenerator.java
> :
> {code}
> double factor = (ts - lastTimeStamp) / 1000;
> {code}
> Proper casting should be done before the integer division
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)