GUACAMOLE-2021: Fix session recording playback heatmap for short videos.

This commit is contained in:
eugen-keeper committed 2025-01-28 01:47:52 +00:00
1 parent 955e125408
commit 542e09f503
1 file changed
+1 -1
@@ -218,7 +218,7 @@ angular.module('player').factory('playerHeatmapService', [() => {
const bucketDuration = duration / NUM_BUCKETS;
// 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 (duration <= 0)