LAUNDRY TREATINGMACHINE AND METHOD FOR OPERATINGA LAUNDRY TREATINGMACHINE The present invention concerns the field of laundry treating machine, such as laundry washing machine to which the following description refers purely by way of example. More specifically, the present invention relates to laundry treating machines provided with a permanent magnet motor or an induction motor for rotating the laundry drum and an inverter-based-apparatus configured to operate said electric motor. As is known, nowadays inverters driving motors are widely applied to home appliances. In general, an inverter driving motor comprises an input stage and an inverter bridge, which is provided, in turn, with a plurality of switching units, which are controlled in order to generate and modulate an AC voltage to be fed to motor terminals. The input stage generally comprises a diode bridge having inputs coupled to mains for receiving the AC mains voltage, outputs for providing a DC voltage, and an electrolytic capacitor for removing voltage ripples which appear in rectified voltage. BACKGROUNDART Depending on the power size, the inverters for home appliances are usually configured in order to have a high capacitance so as to keep the ripple voltage, and thus a ripple current, within a reasonable level, generally comprised between 10% to 15%. Indeed the electrolytic capacitor worsen the life expectation if the ripple voltage/current increases, and a small ripple voltage is recommended for a seamless drive of the motor. However if, on the one side, a flat and stable DC voltage across capacitor, i.e. low ripple voltage, improves the performance of motor driving algorithms, on the other side, it affects the mains current by harmonics. In order to solve such problem, inverters for laundry treating machines are usually provided with a power factor corrector unit (active or passive) which comprises an inductor having enough inductance to increase the power factor (thus the harmonics) to the desired value. However, power factor corrector unit has the disadvantage to be an expensive