fix host metrics calculator