sabayon: avoid division by 0