added --get-bpph-size to specify the size of the requests to get the list of binary...
[ppastats.git] / src / ppastats.c
index 4d8b874..d14d1a4 100644 (file)
@@ -231,7 +231,8 @@ pkg_add_distro(struct package_stats *pkg,
 struct ppa_stats *
 create_ppa_stats(const char *owner,
                 const char *ppa_name,
-                const char *package_status)
+                const char *package_status,
+                int ws_size)
 {
        struct ppa_stats *ppa;
        struct bpph **history, **h_cur, *h;
@@ -246,7 +247,7 @@ create_ppa_stats(const char *owner,
        struct daily_download_total **totals;
 
        ppa_url = get_archive_url(owner, ppa_name);
-       history = get_bpph_list(ppa_url, package_status);
+       history = get_bpph_list(ppa_url, package_status, ws_size);
        free(ppa_url);
 
        if (!history) {