From 4fad6eb32d8af6e9c523bb66d00a2ff4d4890105 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Mon, 31 Oct 2022 01:04:43 +0100 Subject: [PATCH] Tracker: fix thumbnail caching system_time returns the number of microseconds since booting. This is not what's needed for the thumbnail generation timestamp attribute, as a result the attribute was always considered out of date and the stored attribute would never be used. Change-Id: I3728077c484f341b765700532d3f986e64f165ad Reviewed-on: https://review.haiku-os.org/c/haiku/+/5767 Tested-by: Commit checker robot Reviewed-by: waddlesplash Reviewed-by: John Scipione --- src/kits/tracker/Thumbnails.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/tracker/Thumbnails.cpp b/src/kits/tracker/Thumbnails.cpp index bb997131a6..3e7d71724f 100644 --- a/src/kits/tracker/Thumbnails.cpp +++ b/src/kits/tracker/Thumbnails.cpp @@ -224,7 +224,7 @@ GenerateThumbnailJob::Execute() thumbnailWritten = (status == B_OK); // write thumbnail creation time into an attribute - bigtime_t created = system_time(); + bigtime_t created = real_time_clock_usecs(); fFile->WriteAttr(kAttrThumbnailCreationTime, B_TIME_TYPE, 0, &created, sizeof(bigtime_t)); }