diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-08-07 Christian Persch <chpe@cvs.gnome.org> + + * embed/mozilla/MozDownload.cpp: + + Decrease maximum progress update to 0.5s + 2006-08-05 Christian Persch <chpe@cvs.gnome.org> * lib/Makefile.am: diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index 198d6e0bb..dd9a1c88f 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -79,6 +79,9 @@ #include "MozDownload.h" +/* Minimum time between progress updates */ +#define PROGRESS_RATE 500000 /* microsec */ + const char* const persistContractID = "@mozilla.org/embedding/browser/nsWebBrowserPersist;1"; MozDownload::MozDownload() : @@ -143,7 +146,7 @@ MozDownload::Init (nsIURI *aSource, mTotalProgress = 0; mCurrentProgress = 0; mPercentComplete = 0; - mInterval = 200000; /* microsec */ + mInterval = PROGRESS_RATE; mLastUpdate = mStartTime; mMIMEInfo = aMIMEInfo; |