aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/MozDownload.cpp5
1 files changed, 4 insertions, 1 deletions
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;