Index: chrome/browser/download/download_item.cc |
diff --git a/chrome/browser/download/download_item.cc b/chrome/browser/download/download_item.cc |
index 3069e94802702bdf2b16a38f803414cac164c9e7..378187728a85168883192bf11c5ee7d1d2ed712c 100644 |
--- a/chrome/browser/download/download_item.cc |
+++ b/chrome/browser/download/download_item.cc |
@@ -325,6 +325,8 @@ bool DownloadItem::TimeRemaining(base::TimeDelta* remaining) const { |
} |
int64 DownloadItem::CurrentSpeed() const { |
+ if (is_paused_) |
+ return 0; |
base::TimeDelta diff = base::TimeTicks::Now() - start_tick_; |
int64 diff_ms = diff.InMilliseconds(); |
return diff_ms == 0 ? 0 : received_bytes_ * 1000 / diff_ms; |