Skip to content

Commit

Permalink
🙌 Random Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
dgonzo27 committed Dec 12, 2022
1 parent d9a365f commit ef063fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/sensor_filter/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def filter_temperature_message(

while True:
logger.debug("checking raspberry pi cpu temperature...")
temperature = (TEMPERATURE_THRESHOLD - 14.0) + (random.random() * 15.0)
temperature = (TEMPERATURE_THRESHOLD - 14.0) + (random.randint(0, 10) * 15.0)
if temperature > TEMPERATURE_THRESHOLD:
logger.warning("temperature is above threshold!")
id = uuid.uuid4()
Expand Down
2 changes: 1 addition & 1 deletion modules/sensor_filter/src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.1"
__version__ = "1.0.2"

0 comments on commit ef063fe

Please sign in to comment.