1
0
Fork 0
mirror of synced 2024-06-02 18:54:41 +12:00

Fix logging in download_thread.py printing negative time

This commit is contained in:
Dummerle 2022-01-12 23:47:35 +01:00
parent 0cea43f0d1
commit 9072a78461
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -16,7 +16,7 @@ from legendary.models.downloading import UIUpdate, WriterTask
from rare import shared
from rare.utils.models import InstallQueueItemModel
logger = getLogger("Download")
logger = getLogger("DownloadThread")
class DownloadThread(QThread):
@ -142,7 +142,7 @@ class DownloadThread(QThread):
return
self.status.emit("dl_finished")
end_t = time.time()
logger.info(f"Download finished in {start_time - end_t}s")
logger.info(f"Download finished in {end_t - start_time}s")
game = self.core.get_game(self.igame.app_name)
if self.queue_item.options.overlay: