diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-08-08 04:00:57 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-08-08 04:00:57 +0800 |
commit | 04e3349f9183df47de06f66bcdde388cc2891bdc (patch) | |
tree | 642da8b2c4cc354fccc8b17f7f11d20fc98cc805 /embed/mozilla | |
parent | 301a01c3d1354b8b6aab938713428be51f506bea (diff) | |
download | gsoc2013-epiphany-04e3349f9183df47de06f66bcdde388cc2891bdc.tar gsoc2013-epiphany-04e3349f9183df47de06f66bcdde388cc2891bdc.tar.gz gsoc2013-epiphany-04e3349f9183df47de06f66bcdde388cc2891bdc.tar.bz2 gsoc2013-epiphany-04e3349f9183df47de06f66bcdde388cc2891bdc.tar.lz gsoc2013-epiphany-04e3349f9183df47de06f66bcdde388cc2891bdc.tar.xz gsoc2013-epiphany-04e3349f9183df47de06f66bcdde388cc2891bdc.tar.zst gsoc2013-epiphany-04e3349f9183df47de06f66bcdde388cc2891bdc.zip |
Decrease maximum progress update to 0.5s
2006-08-07 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/MozDownload.cpp:
Decrease maximum progress update to 0.5s
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 5 |
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; |