network_handler.py: Adjust time elasped format

This commit is contained in:
Mykola Grymalyuk
2023-02-04 17:43:30 -07:00
parent 1ab2409176
commit 4782ccdab1

View File

@@ -293,7 +293,7 @@ class DownloadObject:
logging.info(f"Download complete: {self.filename}")
logging.info("Stats:")
logging.info(f" Downloaded size: {utilities.human_fmt(self.downloaded_file_size)}")
logging.info(f" Time elapsed: {time.time() - self.start_time} seconds")
logging.info(f" Time elapsed: {(time.time() - self.start_time):.2f} seconds")
logging.info(f" Speed: {utilities.human_fmt(self.downloaded_file_size / (time.time() - self.start_time))}/s")
logging.info(f" Location: {self.filepath}")
except Exception as e: