X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fppastats.c;h=7d67bc44723f1651c73d12530d7193aca5094bc7;hb=f534061fc8230481a3ca40abc1d1e9b79d3c4976;hp=d14d1a4549413bc13c38b0def82173faf95cf0a1;hpb=c75862be119ac38a67f841fcc7da339be423973a;p=ppastats.git diff --git a/src/ppastats.c b/src/ppastats.c index d14d1a4..7d67bc4 100644 --- a/src/ppastats.c +++ b/src/ppastats.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 jeanfi@gmail.com + * Copyright (C) 2011-2014 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -25,8 +25,8 @@ #include #include "list.h" -#include "log.h" #include "lp_ws.h" +#include #include "ppastats.h" static struct package_stats *get_package_stats(struct ppa_stats *stats, @@ -270,12 +270,7 @@ create_ppa_stats(const char *owner, h->self_link); continue; } - count = get_download_count(h->self_link); - if (count == -1) { - log_err(_("Failed to retrieve download count for %s"), - h->self_link); - count = 0; - } + count = ddts_get_count(totals); pkg_name = h->binary_package_name; pkg_version = h->binary_package_version; arch_series