.......... [ZBX-8583] refactored the convert_units() function