code: func truncateDuration(d time.Duration) time.Duration {
  	for _, t := range durTransactions {
  		if d > t.threshold {
  			return d.Round(t.round)
  		}
  	}
  	return d
  }
docs: // truncateDuration truncates d to make it more human-readable.