renaming variable
This commit is contained in:
parent
59279052a8
commit
fd22128661
@ -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 };
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user