discovery: Increase discovery_unsched_items whenever we restart a check
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 28 Nov 2017 20:14:11 +0000 (15:14 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 28 Nov 2017 21:45:37 +0000 (16:45 -0500)
commit4172d48852ecd1c86cc7bd4665b23697603d1eed
tree011a70813b1236bba3a5bac2a1259750a91b902c
parent59fcf95d505c3995f858b826d10cd48321ed383e
discovery: Increase discovery_unsched_items whenever we restart a check

The discovery_unsched_items is decremented every time a DiscoveryCandidate
goes from non-pending to pending. So if we restart a check by setting
pending to FALSE, we should re-increase the discovery_unsched_items.
agent/conncheck.c