fixed bug in isAnyProcessorDischarging function. It was originally returning true always