X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fping.c;h=df2f6da6e6bc69158ebad65e8c47615cd10bfcad;hb=20d15cfd26b23508242abcead906207bf26175d0;hp=d669aa937d4b15f187e7d3c69edd4f2d341b25f9;hpb=0003c4d3c184f0f437499d6073cd023dc7b659c2;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