From df9a19a9b4c26df6fbfc0e019fe0888f6e41c71a Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 27 Aug 2020 14:18:45 -0400 Subject: [PATCH] always send integers to buffer api --- ui/redux/actions/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/redux/actions/app.js b/ui/redux/actions/app.js index 84aaf0cbf..84f7ee1e6 100644 --- a/ui/redux/actions/app.js +++ b/ui/redux/actions/app.js @@ -477,8 +477,8 @@ export function doAnalyticsBuffer(uri, bufferData) { const { value: { video, audio, source }, } = claim; - const timeAtBuffer = bufferData.currentTime * 1000; - const bufferDuration = bufferData.secondsToLoad * 1000; + const timeAtBuffer = parseInt(bufferData.currentTime * 1000); + const bufferDuration = parseInt(bufferData.secondsToLoad * 1000); const fileDurationInSeconds = (video && video.duration) || (audio && audio.duration); const fileSize = source.size; // size in bytes const fileSizeInBits = fileSize * 8;