Skip to content
Snippets Groups Projects
Commit 2cdbadea authored by nimrod's avatar nimrod
Browse files

Fix another typo.

parent 6b16325c
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,9 @@ def main(): ...@@ -134,7 +134,9 @@ def main():
print("The last but 1 file is empty, can't calculate size difference.") print("The last but 1 file is empty, can't calculate size difference.")
exit(3) 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: if size_ratio > args.size_critical_threshold:
print( print(
"The size difference between the latest 2 file is {}%.".format( "The size difference between the latest 2 file is {}%.".format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment