diff options
author | Jean-François Rameau <jframeau@cvs.gnome.org> | 2006-07-07 05:56:28 +0800 |
---|---|---|
committer | Jean-François Rameau <jframeau@src.gnome.org> | 2006-07-07 05:56:28 +0800 |
commit | e43955ce976018e77e51965fba4ebd19e47b3c78 (patch) | |
tree | 22647288ea22a8fe6b9ba88b053d7b8cb465a98a /embed/mozilla | |
parent | bcdd93e6b16b930b6c00def2f82aae9a78fc3600 (diff) | |
download | gsoc2013-epiphany-e43955ce976018e77e51965fba4ebd19e47b3c78.tar gsoc2013-epiphany-e43955ce976018e77e51965fba4ebd19e47b3c78.tar.gz gsoc2013-epiphany-e43955ce976018e77e51965fba4ebd19e47b3c78.tar.bz2 gsoc2013-epiphany-e43955ce976018e77e51965fba4ebd19e47b3c78.tar.lz gsoc2013-epiphany-e43955ce976018e77e51965fba4ebd19e47b3c78.tar.xz gsoc2013-epiphany-e43955ce976018e77e51965fba4ebd19e47b3c78.tar.zst gsoc2013-epiphany-e43955ce976018e77e51965fba4ebd19e47b3c78.zip |
Don't hammer the cpu when downloading file with an unknown size. Fix bug
2006-07-06 Jean-François Rameau <jframeau@cvs.gnome.org>
* embed/mozilla/MozDownload.cpp: (OnProgressChange64):
Don't hammer the cpu when downloading file with an unknown size.
Fix bug 346671.
* embed/ephy-embed-shell.c: (ephy_embed_shell_set_page_setup),
(ephy_embed_shell_set_print_settings):
Fix compiler warnings.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index 5c8ee71ec..198d6e0bb 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -396,8 +396,7 @@ MozDownload::OnProgressChange64 (nsIWebProgress *aWebProgress, PRInt64 now = PR_Now (); if ((now - mLastUpdate < mInterval) && - (aMaxTotalProgress != -1) && - (aCurTotalProgress < aMaxTotalProgress)) + (aMaxTotalProgress == -1 || aCurTotalProgress < aMaxTotalProgress)) return NS_OK; mLastUpdate = now; |