diff --git a/src/allmydata/web/status.py b/src/allmydata/web/status.py
index 8af453c..8f7b930 100644
a
|
b
|
class DownloadStatusPage(DownloadResultsRendererMixin, rend.Page): |
433 | 433 | (start, length, requesttime, finishtime, bytes, decrypt, paused) = r_ev |
434 | 434 | if finishtime is not None: |
435 | 435 | rtt = finishtime - requesttime - paused |
436 | | speed = self.render_rate(None, 1.0 * bytes / rtt) |
| 436 | if rtt == 0: |
| 437 | speed = "-" |
| 438 | else: |
| 439 | speed = self.render_rate(None, 1.0 * bytes / rtt) |
437 | 440 | rtt = self.render_time(None, rtt) |
438 | 441 | decrypt = self.render_time(None, decrypt) |
439 | 442 | paused = self.render_time(None, paused) |
… |
… |
class DownloadStatusPage(DownloadResultsRendererMixin, rend.Page): |
459 | 462 | elif etype == "delivery": |
460 | 463 | if reqtime[0] == segnum: |
461 | 464 | segtime = when - reqtime[1] |
462 | | speed = self.render_rate(None, 1.0 * seglen / segtime) |
| 465 | if segtime == 0: |
| 466 | speed = "-" |
| 467 | else: |
| 468 | speed = self.render_rate(None, 1.0 * seglen / segtime) |
463 | 469 | segtime = self.render_time(None, segtime) |
464 | 470 | else: |
465 | 471 | segtime, speed = "", "" |