X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fping.c;h=df2f6da6e6bc69158ebad65e8c47615cd10bfcad;hb=08a2128ac248150b50f9c54c9c71f573e54df3c3;hp=d669aa937d4b15f187e7d3c69edd4f2d341b25f9;hpb=09c6a320f3cb36b5dbb2c2ce43858f33be7acf9b;p=collectd.git diff --git a/src/ping.c b/src/ping.c index d669aa93..df2f6da6 100644 --- a/src/ping.c +++ b/src/ping.c @@ -210,7 +210,8 @@ static int ping_dispatch_all (pingobj_t *pingobj) /* {{{ */ hl->pkg_missed++; /* if the host did not answer our last N packages, trigger a resolv. */ - if (ping_max_missed >= 0 && hl->pkg_missed >= ping_max_missed) + if ((ping_max_missed >= 0) + && (hl->pkg_missed >= ((uint32_t) ping_max_missed))) { /* {{{ */ /* we reset the missed package counter here, since we only want to * trigger a resolv every N packages and not every package _AFTER_ N