aws-solutions / real-time-iot-device-monitoring-with-kinesis

AWS Solution with a CloudFormation template for an ingestion mechanism for analytics about device connectivity and activity (i.e. sensor readings), as well as a dashboard for visualizing this data.
Other
65 stars 45 forks source link

fix random anomaly generator #1

Open TheRyanBurke opened 5 years ago

TheRyanBurke commented 5 years ago

Issue #, if available: anomaly rate is firing at 2% instead of indicated 3%

Description of changes: $RANDOM % 100 returns values 0-99. for 3% anomaly rate, the condition needs greater than or equal to 97 instead of greater than 97

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.