- fix potential divide-by-zero
char msg[200];
long i = CurrentItems < TotalItems ? CurrentItems + 1 : CurrentItems;
- unsigned long long const ETA = (TotalBytes - CurrentBytes) / CurrentCPS;
+ unsigned long long ETA = 0;
+ if(CurrentCPS > 0)
+ ETA = (TotalBytes - CurrentBytes) / CurrentCPS;
// only show the ETA if it makes sense
if (ETA > 0 && ETA < 172800 /* two days */ )
+apt (0.8.16~exp5ubuntu3) UNRELEASEDoneiric; urgency=low
+
+ * apt-pkg/acquire.cc:
+ - fix potential divide-by-zero
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Tue, 09 Aug 2011 14:51:07 +0200
+
apt (0.8.16~exp5ubuntu2) oneiric; urgency=low
* test/integration/test-hashsum-verification: