diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-04-08 20:03:07 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-04-08 20:03:07 +0000 |
commit | 84a1f9b6d75a64cc6fad2dddbedc058d79d1bf37 (patch) | |
tree | e5ce0e95cbb3150baea114979e5811ba469da04e /embed/ephy-download.c | |
parent | 8fb008ce37b33a366c009d0f06acf46293c1bcd6 (diff) | |
download | epiphany-84a1f9b6d75a64cc6fad2dddbedc058d79d1bf37.tar.gz |
More changes for 64bit downloads.
2005-04-08 Christian Persch <chpe@cvs.gnome.org>
* embed/downloader-view.c: (format_interval),
(update_download_row):
* embed/ephy-download.c: (update_remaining_time),
(ephy_download_get_remaining_time):
* embed/ephy-download.h:
* embed/mozilla/mozilla-download.cpp:
More changes for 64bit downloads.
Diffstat (limited to 'embed/ephy-download.c')
-rw-r--r-- | embed/ephy-download.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c index cece472a5..a04d70eb6 100644 --- a/embed/ephy-download.c +++ b/embed/ephy-download.c @@ -41,8 +41,8 @@ enum struct _EphyDownloadPrivate { - long remaining_time_last_update; - long remaining_time; + gint64 remaining_time_last_update; + gint64 remaining_time; }; static GObjectClass *parent_class = NULL; @@ -140,7 +140,7 @@ ephy_download_get_name (EphyDownload *download) static void update_remaining_time (EphyDownload *download) { - long elapsed_time, total, cur; + gint64 elapsed_time, total, cur; total = ephy_download_get_total_progress (download); cur = ephy_download_get_current_progress (download); @@ -155,10 +155,10 @@ update_remaining_time (EphyDownload *download) } } -long +gint64 ephy_download_get_remaining_time (EphyDownload *download) { - long elapsed_time; + gint64 elapsed_time; elapsed_time = ephy_download_get_elapsed_time (download); if (elapsed_time - download->priv->remaining_time_last_update >= @@ -206,7 +206,7 @@ ephy_download_get_percent (EphyDownload *download) return klass->get_percent (download); } -long +gint64 ephy_download_get_elapsed_time (EphyDownload *download) { EphyDownloadClass *klass = EPHY_DOWNLOAD_GET_CLASS (download); |