X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fping.c;h=df2f6da6e6bc69158ebad65e8c47615cd10bfcad;hb=243a7d0ee8150608f33f796065638fd3766e03a7;hp=d669aa937d4b15f187e7d3c69edd4f2d341b25f9;hpb=c4da209d3b3ef23d03617c15abc3c8365c0ffd2b;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