multimodalart HF Staff commited on
Commit
ad4aed3
·
1 Parent(s): f366cad

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +4 -3
index.html CHANGED
@@ -156,13 +156,14 @@
156
  }
157
 
158
  const elapsedTime = (Date.now() - startTime) / 1000;
159
- let speed = totalSize / elapsedTime;
 
160
 
161
  let time1GB = (1024 / speed) / 60;
162
  let time5GB = (5 * 1024 / speed) / 60;
163
  let time10GB = (10 * 1024 / speed) / 60;
164
-
165
- messageDiv.innerHTML = `All files uploaded successfully in ${elapsedTime.toFixed(2)} seconds, for all ${totalSize.toFixed(2)} MB in the ${files.length} files, speed ${speed.toFixed(2)} MB/s.<br>To upload a 1GB model at this speed, it would take approximately ${time1GB.toFixed(2)} minutes.<br>To upload a 5GB model at this speed, it would take approximately ${time5GB.toFixed(2)} minutes.<br>To upload a 10GB model at this speed, it would take approximately ${time10GB.toFixed(2)} minutes.`;
166
  processingMessage.textContent = "All files processed";
167
  } else {
168
  messageDiv.textContent = 'Please select files to upload';
 
156
  }
157
 
158
  const elapsedTime = (Date.now() - startTime) / 1000;
159
+ let totalSizeMB = totalSize / (1024 * 1024)
160
+ let speed = totalSizeMB / elapsedTime;
161
 
162
  let time1GB = (1024 / speed) / 60;
163
  let time5GB = (5 * 1024 / speed) / 60;
164
  let time10GB = (10 * 1024 / speed) / 60;
165
+
166
+ messageDiv.innerHTML = `All files uploaded successfully in ${elapsedTime.toFixed(2)} seconds, for all ${totalSizeMB.toFixed(2)} MB in the ${files.length} files, speed ${speed.toFixed(2)} MB/s.<br>To upload a 1GB model at this speed, it would take approximately ${time1GB.toFixed(2)} minutes.<br>To upload a 5GB model at this speed, it would take approximately ${time5GB.toFixed(2)} minutes.<br>To upload a 10GB model at this speed, it would take approximately ${time10GB.toFixed(2)} minutes.`;
167
  processingMessage.textContent = "All files processed";
168
  } else {
169
  messageDiv.textContent = 'Please select files to upload';