aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-03-05 15:37:16 +0800
committerXan Lopez <xan@src.gnome.org>2009-03-05 15:37:16 +0800
commitc2bde457bf24816a0b5be5a4ab46f3b999e2345f (patch)
treee13af1d35d86adb7bd3ff20207ac5454a2643c40 /embed/downloader-view.c
parent7806d4c72e4c79cbdea93c388eb9319189f17047 (diff)
downloadgsoc2013-epiphany-c2bde457bf24816a0b5be5a4ab46f3b999e2345f.tar
gsoc2013-epiphany-c2bde457bf24816a0b5be5a4ab46f3b999e2345f.tar.gz
gsoc2013-epiphany-c2bde457bf24816a0b5be5a4ab46f3b999e2345f.tar.bz2
gsoc2013-epiphany-c2bde457bf24816a0b5be5a4ab46f3b999e2345f.tar.lz
gsoc2013-epiphany-c2bde457bf24816a0b5be5a4ab46f3b999e2345f.tar.xz
gsoc2013-epiphany-c2bde457bf24816a0b5be5a4ab46f3b999e2345f.tar.zst
gsoc2013-epiphany-c2bde457bf24816a0b5be5a4ab46f3b999e2345f.zip
Fix a few compiler warnings and coding style.
svn path=/trunk/; revision=8851
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r--embed/downloader-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index b0380cfb7..8fb8d6d61 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -398,6 +398,7 @@ ephy_download_get_remaining_time (WebKitDownload *download)
gint64 total, cur;
gdouble elapsed_time;
gdouble remaining_time;
+ gdouble per_byte_time;
total = webkit_download_get_total_size (download);
cur = webkit_download_get_current_size (download);
@@ -408,7 +409,6 @@ ephy_download_get_remaining_time (WebKitDownload *download)
return -1.0;
}
- gdouble per_byte_time;
per_byte_time = elapsed_time / cur;
remaining_time = per_byte_time * (total - cur);