[epiphany/wip/exalm/timestamps: 21/22] download: Use monotonic start time instead of GTK event time




commit 5427a0cb46e3dfeeb90eb0b87853410b717a13f3
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Mar 21 12:59:55 2022 +0400

    download: Use monotonic start time instead of GTK event time
    
    We don't have any more specific input timestamp we could use here.
    In theory, WebKit could give us one, but then there isn't always a
    meaningful timestamp in the first place - for example, a download could
    have started after a timer.

 embed/ephy-download.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index b928ba0d8..2b4c85f9c 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -621,7 +621,7 @@ ephy_download_init (EphyDownload *download)
 
   download->action = EPHY_DOWNLOAD_ACTION_NONE;
 
-  download->start_time = gtk_get_current_event_time ();
+  download->start_time = g_get_monotonic_time () / 1000;
 
   download->show_notification = TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]