The role of the discharge resistor of the capacitor