numberProbesSuccess += numberProbes;

I assume that numberProbes hold the total probes (successful and unsuccessful). If so why are you incrementing numberProbesSuccess by this number? If you have...