Loading check_s3_bucket/__init__.py +3 −1 Original line number Diff line number Diff line Loading @@ -134,7 +134,9 @@ def main(): print("The last but 1 file is empty, can't calculate size difference.") exit(3) size_ratio = 100 * abs((files[1] - files[0]) / files[1]) size_ratio = 100 * abs( (files[1]["Size"] - files[0]["Size"]) / files[1]["Size"] ) if size_ratio > args.size_critical_threshold: print( "The size difference between the latest 2 file is {}%.".format( Loading Loading
check_s3_bucket/__init__.py +3 −1 Original line number Diff line number Diff line Loading @@ -134,7 +134,9 @@ def main(): print("The last but 1 file is empty, can't calculate size difference.") exit(3) size_ratio = 100 * abs((files[1] - files[0]) / files[1]) size_ratio = 100 * abs( (files[1]["Size"] - files[0]["Size"]) / files[1]["Size"] ) if size_ratio > args.size_critical_threshold: print( "The size difference between the latest 2 file is {}%.".format( Loading