Fixed logical error that was causing optimistic results.
Fixed logical error that was causing optimistic results.

lucho-yankov/ovp-power-simulator,lucho-yankov/ovp-power-simulator,lucho-yankov/ovp-power-simulator