multimodalart HF Staff commited on
Commit
aca1f4b
·
1 Parent(s): 9a25157

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -2
index.html CHANGED
@@ -155,11 +155,12 @@
155
 
156
  // calculate elapsed time and speed
157
  const elapsedTime = (Date.now() - startTime) / 1000; // in seconds
158
- let speed = uploadedBytes / elapsedTime; // in bytes per second
159
 
160
  // Convert totalSize and speed to MB and MB/s respectively
161
  totalSize = totalSize / (1024 * 1024); // convert to MB
162
- speed = speed / (1024 * 1024); // convert to MB/s
 
163
 
164
  // Estimate time to upload larger files in minutes
165
  let time1GB = (1024 / speed) / 60;
 
155
 
156
  // calculate elapsed time and speed
157
  const elapsedTime = (Date.now() - startTime) / 1000; // in seconds
158
+ //let speed = uploadedBytes / elapsedTime; // in bytes per second
159
 
160
  // Convert totalSize and speed to MB and MB/s respectively
161
  totalSize = totalSize / (1024 * 1024); // convert to MB
162
+ let speed = totalSize / elapsedTime; // convert bytes to MB and calculate MB/s
163
+
164
 
165
  // Estimate time to upload larger files in minutes
166
  let time1GB = (1024 / speed) / 60;