Added ApplicationManager::Status, DownloadManager now displays data from Status, added improved progress information to DownloadManager via Task updating its Status object

This commit is contained in:
2021-11-26 12:17:26 -06:00
parent 935aed1a7a
commit 6c18e16357
10 changed files with 220 additions and 81 deletions

View File

@@ -55,10 +55,10 @@ class W3DHub
create_directories(path)
file = File.open(path, "wb")
file = File.open(path, "ab")
if (start_from_bytes > 0)
headers["Range"] = "bytes=#{start_from_bytes}-#{package.size}"
file.seek(start_from_bytes)
file.pos = start_from_bytes
end
streamer = lambda do |chunk, remaining_bytes, total_bytes|