renaming variable

This commit is contained in:
Alex Yong 2024-03-29 19:16:55 +00:00
parent 59279052a8
commit fd22128661

View File

@ -135,7 +135,7 @@ function computeETA(state) {
const remainingSize = totalSize - uploadedSize; const remainingSize = totalSize - uploadedSize;
const speedBytesPerSecond = state.speedMbyte * 1024 * 1024; const speedBytesPerSecond = state.speedMbyte * 1024 * 1024;
const eta = remainingSize / speedBytesPerSecond; const eta = remainingSize / speedBytesPerSecond;
const percentage = (uploadedSize / totalSize) * 100; const uploadPercentage = (uploadedSize / totalSize) * 100;
return { eta, uploadPercentage }; return { eta, uploadPercentage };
} }