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

This commit is contained in:
eugen-keeper
2025-01-22 14:46:09 +00:00
parent 955e125408
commit 542e09f503

View File

@@ -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)