Update copy speed estimation to 20 MB/s for more conservative progress

- Change copy speed estimation from 50 MB/s to 20 MB/s
- This accounts for slower USB drives and system overhead
- Prevents progress bar from jumping too quickly to high percentages
- Provides more realistic time estimates for the copy operation
parent 1412f2d7
......@@ -749,10 +749,10 @@ class InstallerWorker(QThread):
total_bytes = int(du_result.stdout.split()[0])
self.log(f"Estimated total size to copy: {total_bytes} bytes ({total_bytes // (1024*1024)} MB)")
# Estimate copy time based on typical speeds (50-200 MB/s for modern systems)
# Use very conservative estimate of 50 MB/s for more realistic estimation
# Estimate copy time based on typical speeds (20-100 MB/s for USB drives)
# Use very conservative estimate of 20 MB/s for realistic estimation
# This accounts for slower USB drives and system overhead
estimated_copy_time = total_bytes / (50 * 1024 * 1024) # seconds
estimated_copy_time = total_bytes / (20 * 1024 * 1024) # seconds
self.log(f"Estimated copy time: {estimated_copy_time:.1f} seconds (conservative estimate)")
except (subprocess.CalledProcessError, ValueError, IndexError):
......@@ -1349,7 +1349,7 @@ class AutoInstallerGUI(QMainWindow):
# Log Output - make it more compact
self.log_text = QTextEdit()
self.log_text.setReadOnly(True)
self.log_text.setMaximumHeight(120) # Reduced from 150
self.log_text.setMaximumHeight(150)
layout.addWidget(self.log_text)
# Copy Progress Output (small text area for rsync details) - make it more compact
......@@ -1712,4 +1712,4 @@ def main():
sys.exit(app.exec())
if __name__ == "__main__":
main()
\ No newline at end of file
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment