pull: Show Estimating if we're scanning too
The libcurl backend does all the work in the main thread/loop, which seems to starve the idle scanning worker more. With the libcurl backend, we're a lot more likely to have at least one outstanding metadata request. But it can more easily transiently happen with libcurl that all of our current fetches are content. To be accurate here, just show Estimating if we're scanning too. Closes: #654 Approved by: jlebon
This commit is contained in:
1 parent
f4d1334e19
commit
425ccc0a33
3 files changed
+6
-3
No files matched your search
@@ -210,6 +210,7 @@ update_progress (gpointer user_data)
|
||||
ostree_async_progress_set_uint (pull_data->progress, "outstanding-writes", outstanding_writes);
|
||||
ostree_async_progress_set_uint (pull_data->progress, "fetched", fetched);
|
||||
ostree_async_progress_set_uint (pull_data->progress, "requested", requested);
|
||||
ostree_async_progress_set_uint (pull_data->progress, "scanning", g_queue_is_empty (&pull_data->scan_object_queue) ? 0 : 1);
|
||||
ostree_async_progress_set_uint (pull_data->progress, "scanned-metadata", n_scanned_metadata);
|
||||
ostree_async_progress_set_uint64 (pull_data->progress, "bytes-transferred", bytes_transferred);
|
||||
ostree_async_progress_set_uint64 (pull_data->progress, "start-time", start_time);
|
||||
|
||||
Reference in new issue
Block a user