fun commitBucket()

in src/main/kotlin/com/intellij/ideolog/highlighting/LogFileMapRenderer.kt [149:166]


          fun commitBucket() {
            if (nBucketCur >= numBuckets)
              return

            highlighterBuckets[nBucketCur] = colorCurCustomHighlighter
            if (highlighterBuckets[max(nBucketCur - 1, 0)] != colorCurCustomHighlighter) // Min size of two buckets
              highlighterBuckets[max(nBucketCur - 1, 0)] = colorCurCustomHighlighter
            colorCurCustomHighlighter = null

            val maxSec = timeDifferenceToRed.toDouble()
            val heatValue = max(0.0, min(nCurBucketMaxTimeDelta, 10) / maxSec) // Scale up to maxSec
            nCurBucketMaxTimeDelta = 0
            heatMapBuckets[nBucketCur] = heatValue
            if (heatMapBuckets[max(nBucketCur - 1, 0)] < heatValue)
              heatMapBuckets[max(nBucketCur - 1, 0)] = heatValue

            nBucketCur++
          }