From ad615964f02b703cb1cba16850c1f30a1ee9a70d Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Aug 08 2017 14:13:54 +0000 Subject: Merge #6936 `Fix a rounding error.` --- diff --git a/scripts/pdc/get-retired-packages.py b/scripts/pdc/get-retired-packages.py index 2ccb5dd..b4c45dc 100644 --- a/scripts/pdc/get-retired-packages.py +++ b/scripts/pdc/get-retired-packages.py @@ -69,7 +69,7 @@ def get_pkg_branch_status(branch_name): component_branch_page_one = \ get_component_branch_page(branch_name, page=1, page_size=1) # Get the total number of pages - num_pages = int(ceil(component_branch_page_one['count'] / 100)) + num_pages = int(ceil(component_branch_page_one['count'] / 100.0)) # Since we are going to multi-thread, we need to make a partial function # call so that all the function needs is an iterable to run partial_get_pkgs_from_page = partial(get_pkgs_from_page, branch_name)