You initialize variable activeDCIs to 1, which gives you incorrect result - if you have 36 cores line
activeDCIs++;
will be execured 36 times and result will be 37.
Best regards,
Victor
activeDCIs++;
will be execured 36 times and result will be 37.
Best regards,
Victor