summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-file-operations.c4
-rw-r--r--libcaja-private/caja-icon-info.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/libcaja-private/caja-file-operations.c b/libcaja-private/caja-file-operations.c
index f9f8739a..99fbe89f 100644
--- a/libcaja-private/caja-file-operations.c
+++ b/libcaja-private/caja-file-operations.c
@@ -1411,7 +1411,7 @@ report_delete_progress (CommonJob *job,
guint64 now;
char *files_left_s;
- now = g_thread_gettime ();
+ now = g_get_monotonic_time () * 1000;
if (transfer_info->last_report_time != 0 &&
ABS ((gint64)(transfer_info->last_report_time - now)) < 100 * NSEC_PER_MSEC) {
return;
@@ -2881,7 +2881,7 @@ report_copy_progress (CopyMoveJob *copy_job,
is_move = copy_job->is_move;
- now = g_thread_gettime ();
+ now = g_get_monotonic_time () * 1000;
if (transfer_info->last_report_time != 0 &&
ABS ((gint64)(transfer_info->last_report_time - now)) < 100 * NSEC_PER_MSEC) {
diff --git a/libcaja-private/caja-icon-info.c b/libcaja-private/caja-icon-info.c
index 5d783877..a32cf991 100644
--- a/libcaja-private/caja-icon-info.c
+++ b/libcaja-private/caja-icon-info.c
@@ -57,7 +57,7 @@ G_DEFINE_TYPE (CajaIconInfo,
static void
caja_icon_info_init (CajaIconInfo *icon)
{
- icon->last_use_time = g_thread_gettime ();
+ icon->last_use_time = g_get_monotonic_time () * 1000;
icon->sole_owner = TRUE;
}
@@ -80,7 +80,7 @@ pixbuf_toggle_notify (gpointer info,
g_object_remove_toggle_ref (object,
pixbuf_toggle_notify,
info);
- icon->last_use_time = g_thread_gettime ();
+ icon->last_use_time = g_get_monotonic_time () * 1000;
schedule_reap_cache ();
}
}
@@ -228,7 +228,7 @@ reap_cache (gpointer data)
reapable_icons_left = TRUE;
- time_now = g_thread_gettime ();
+ time_now = g_get_monotonic_time () * 1000;
if (loadable_icon_cache)
{