- percentile = latency_to_percentile (context, latency);
- if (percentile < (100.0 * threshold_green))
- color = OPING_GREEN;
- else if (percentile < (100.0 * threshold_yellow))
- color = OPING_YELLOW;
- else
- color = OPING_RED;
-
-#if 0
- if ((ratio_this <= threshold_green)
- || ((ratio_prev < threshold_green)
- && (ratio_this > threshold_green)))
+ ratio = latency_to_ratio (context, latency);
+ if (ratio < threshold_green)