Skip to content

Commit

Permalink
Merge branch 'release/0.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaazing-build committed Mar 7, 2018
2 parents 568af4a + 347f3ce commit a645eb6
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
*.iml
logs
/target/
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [0.1.1](https://github.com/kaazing/KafkaLoadGenerator/tree/0.1.1) (2018-03-07)
[Full Changelog](https://github.com/kaazing/KafkaLoadGenerator/compare/0.1.0...0.1.1)

**Merged pull requests:**

- fix divide by zero [\#2](https://github.com/kaazing/KafkaLoadGenerator/pull/2) ([sidda-at-kaazing](https://github.com/sidda-at-kaazing))

## [0.1.0](https://github.com/kaazing/KafkaLoadGenerator/tree/0.1.0) (2018-03-01)
**Merged pull requests:**

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/lc/df/kafka/client/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static String getNewPayload(String payload,String eventid,String marketid
if (selectionid != null)
{
int num = getRandomIntInRange(PRICE_NUM_LIMIT);
int den = getRandomIntInRange(PRICE_DEN_LIMIT);
int den = getRandomIntInRange(PRICE_DEN_LIMIT) + 1; //prevent divide by zero
double decimal = 1 + ((double)num/(double)den);
DecimalFormat f = new DecimalFormat("##.00");
pl = payload.replaceAll("\\$\\{selection\\}", selectionid)
Expand Down
Binary file modified target/classes/com/lc/df/kafka/client/Utils.class
Binary file not shown.
Binary file not shown.
Binary file modified target/kafka-load-generator-0.0.1-SNAPSHOT.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven
#Tue Feb 27 16:31:21 PST 2018
#Tue Mar 06 16:07:23 PST 2018
version=0.0.1-SNAPSHOT
groupId=com.lc.df.kafka
artifactId=kafka-load-generator

0 comments on commit a645eb6

Please sign in to comment.