You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/02/19 19:25:03 UTC
[jira] [Created] (FLINK-8708) Unintended integer division in
StandaloneThreadedGenerator
Ted Yu created FLINK-8708:
-----------------------------
Summary: 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
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)