In an up-converter supplied by the mains supply and operating in the
critical mode, the on-time of the switching element (2) is modulated so
that it is increased in the vicinity of the zero crossings of the mains
supply voltage. As a result the THD is lowered.