OwenTruong / civitdl

A CLI python script to batch download models from CivitAI with CivitAI Api V1
Apache License 2.0
42 stars 5 forks source link

fix issue when download_time is 0 #72

Closed OwenTruong closed 5 months ago

OwenTruong commented 5 months ago

Summary

Related Issues? Link all related issue. Even the ones that are not being closed.

68

Comments Current bug with download_time is that when your internet and computer is too fast, download_time might be near 0, and that causes integer division by 0 error. To solve this, when download_time = 0, the calculation for speed of model download will be replaced with infinity.