openatx / adbutils

pure python adb library for google adb service.
MIT License
736 stars 173 forks source link

divide by zero using APK install() #60

Closed phantomblot-x closed 2 years ago

phantomblot-x commented 2 years ago

A divide by zero happens when using install() function to install a small APK. When the time to copy the APK is less than a second 'copytime' becomes zero:

copytime = time.time() - self.start_time speed = humanize(self.copied / copytime) + "/s"