feat: add backup progress estimation with time remaining

- Add estimate_backup_size() using du -sb before rsync starts
- Parse transfer speed from rsync output (KB/s, MB/s, GB/s)
- Calculate remaining time based on speed and remaining bytes
- Show estimated time remaining and size progress in UI
- Add format_time_remaining() for human-readable time display
- New UI elements: backup_time_label_ and backup_size_label_
This commit is contained in:
x3
2026-09-07 19:29:29 +00:00
parent 33044731c8
commit f95a634655
4 changed files with 122 additions and 6 deletions
+2
View File
@@ -90,6 +90,8 @@ private:
GtkWidget* backup_output_view_ = nullptr;
GtkWidget* backup_progress_ = nullptr;
GtkWidget* backup_status_label_ = nullptr;
GtkWidget* backup_time_label_ = nullptr;
GtkWidget* backup_size_label_ = nullptr;
GtkWidget* backup_cancel_btn_ = nullptr;
GtkWidget* backup_close_btn_ = nullptr;