fix: wrong sync progressing numbers

pull/7135/head
Tienson Qin 2022-10-28 17:58:02 +08:00
parent 1a0012974f
commit d220462c39
1 changed files with 6 additions and 2 deletions

View File

@ -217,8 +217,12 @@
full-upload-files (:full-local->remote-files sync-state)
full-download-files (:full-remote->local-files sync-state)
calc-progress-total #(cond
uploading? (count full-upload-files)
downloading? (count full-download-files)
uploading? (if (zero? (count full-upload-files))
(count uploading-files)
(count full-upload-files))
downloading? (if (zero? (count full-download-files))
(count downloading-files)
(count full-download-files))
:else 0)
calc-progress-finished (fn []
(let [current-sync-files (set