Update the counters for commands completed on reset/fail
Fix calculating the disk capacity.