mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 18:15:09 +00:00
ProtocolServer: Implement and handle download progress
Also updates `pro` to display download progress and speed on stderr
This commit is contained in:
parent
c6825a96c7
commit
06cf9d3fb7
14 changed files with 97 additions and 22 deletions
|
@ -86,7 +86,8 @@ void PSClientConnection::did_finish_download(Badge<Download>, Download& download
|
|||
buffer->share_with(client_pid());
|
||||
m_shared_buffers.set(buffer->shbuf_id(), buffer);
|
||||
}
|
||||
post_message(Messages::ProtocolClient::DownloadFinished(download.id(), success, download.total_size(), buffer ? buffer->shbuf_id() : -1));
|
||||
ASSERT(download.total_size().has_value());
|
||||
post_message(Messages::ProtocolClient::DownloadFinished(download.id(), success, download.total_size().value(), buffer ? buffer->shbuf_id() : -1));
|
||||
}
|
||||
|
||||
void PSClientConnection::did_progress_download(Badge<Download>, Download& download)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue