Skip to content

Commit

Permalink
GUACAMOLE-2021: Fix session recording playback heatmap for short videos.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugen-keeper committed Jan 22, 2025
1 parent 65954c2 commit f427ea9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f427ea9

Please sign in to comment.