fix bug in metrics collection where unit conversion occurs twice, resulting in incorrect measurements