Skip to content

Commit

Permalink
Fix missing string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrow768 committed Sep 3, 2023
1 parent c8bbbc5 commit 0441fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main(argv):
time_diff = (time.time() - latest_time) / 60
logger.debug("Last mtime for folder {}: {}".format(folder, time_formatted))
logger.debug("Time diff for folder {}: {} min".format(folder, time_diff))
if time_diff < params["time_before_upload_min"]:
if time_diff < int(params["time_before_upload_min"]):
logger.info(
"Last Log files in {} are too recent: {:.2f} min. Need to be {} - Skipping further processing".format(
folder, time_diff, params["time_before_upload_min"]))
Expand Down

0 comments on commit 0441fe1

Please sign in to comment.