Merge changes from patch branch back to main.

This commit is contained in:
corentin-soriano
2025-01-30 14:09:20 +01:00

View File

@@ -218,7 +218,7 @@ angular.module('player').factory('playerHeatmapService', [() => {
const bucketDuration = duration / NUM_BUCKETS; const bucketDuration = duration / NUM_BUCKETS;
// The rate-limited maximum number of events that any bucket can have, // The rate-limited maximum number of events that any bucket can have,
const maxPossibleBucketValue = Math.floor(bucketDuration * maxRate); const maxPossibleBucketValue = Math.max(Math.floor(bucketDuration * maxRate), 1);
// If the duration is invalid, return the still-empty array // If the duration is invalid, return the still-empty array
if (duration <= 0) if (duration <= 0)