Skip to content

Commit

Permalink
Fix int typecast for rotatemaxfilesizebytes (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Vikas-kum <[email protected]>
  • Loading branch information
ndodda-amazon and Vikas-kum authored Aug 5, 2020
1 parent 480578f commit 257f31d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion smdebug/profiler/profiler_config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def load_config(self):

try:
local_path = config.get("localpath", BASE_FOLDER_DEFAULT)
file_max_size = int(config.get("rotatemaxfilesizeinbytes", MAX_FILE_SIZE_DEFAULT))
file_max_size = int(
float(config.get("rotatemaxfilesizeinbytes", MAX_FILE_SIZE_DEFAULT))
)
file_close_interval = float(
config.get("rotatefilecloseintervalinseconds", CLOSE_FILE_INTERVAL_DEFAULT)
)
Expand Down

0 comments on commit 257f31d

Please sign in to comment.