@classmethod
    def _get_color_for_time(cls, t, mean_time):
        """ Return a yellow color for t-s close to *mean_time*, green
        when *t* is a lot lower, and red when it is a lot higher.
        """
        if not (t or mean_time):
            return '#00FF00'
        if mean_time > t:
            return '#FF%02X00' % (int(255 * mean_time / t), )
        return '#%02XFF00' % int(255 * min(1.0, t / mean_time))
dataset/ETHPy150Open foundit/Piped/piped/processors/trace_processors.py/DiagramTrace._get_color_for_time/swapped operands of `>`