Comment 4 for bug 528374

Revision history for this message
Abel Deuring (adeuring) wrote :

I think the reason for this "7 out of 4 heat flames" bugs is already fixed in db-devel:

edge uses an old variant of the heat display which uses the constant MAX_HEAT. Its value is 5000, while the hottest Ubuntu bug has a heat value of 9676. And calculating floor(4 * 9676 / 5000) gives the value 7.

Since db-devel meanwhile uses a per-target max heat value, such an odd situation should not occur there. But since a value like floor(relative_heat * 4) is used in the new implementation too, and since this number is used to create the URL for an image, we should guard against that kind os nonsensical display by simply limiting the calulated "heat index" to 4