Duty cycle of the radio galaxy B2 0258+35