aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-download.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index c4165b25d..ee1a0154f 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -150,7 +150,10 @@ update_remaining_time (EphyDownload *download)
if (cur > 0)
{
- download->priv->remaining_time = elapsed_time * (total - cur) / cur;
+ float per_byte_time;
+
+ per_byte_time = (float)elapsed_time / (float)cur;
+ download->priv->remaining_time = time_per_byte * (total - cur);
}
}