mercurial/localrepo.py
changeset 4134 9dc64c8414ca
parent 4116 35b39097c3e6
parent 4128 43d8f7466920
child 4137 26596a6b6518
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1880,6 +1880,8 @@ class localrepository(repo.repository):
                 ofp.write(chunk)
             ofp.close()
         elapsed = time.time() - start
+        if elapsed <= 0:
+            elapsed = 0.001
         self.ui.status(_('transferred %s in %.1f seconds (%s/sec)\n') %
                        (util.bytecount(total_bytes), elapsed,
                         util.bytecount(total_bytes / elapsed)))