From ca394b1e637f6e33092089eb1bd9ebe4554e78fc Mon Sep 17 00:00:00 2001 From: Kurt Alfred Kluever Date: Mon, 14 Oct 2024 10:56:01 -0400 Subject: [PATCH] Fix logging time in JournaledLruDiskCache.java currentThreadTimeMillis() returns how long the current thread has been executing, not the current time. --- .../integration/sqljournaldiskcache/JournaledLruDiskCache.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/integration/sqljournaldiskcache/src/main/java/com/bumptech/glide/integration/sqljournaldiskcache/JournaledLruDiskCache.java b/integration/sqljournaldiskcache/src/main/java/com/bumptech/glide/integration/sqljournaldiskcache/JournaledLruDiskCache.java index e966360077..06bc531481 100644 --- a/integration/sqljournaldiskcache/src/main/java/com/bumptech/glide/integration/sqljournaldiskcache/JournaledLruDiskCache.java +++ b/integration/sqljournaldiskcache/src/main/java/com/bumptech/glide/integration/sqljournaldiskcache/JournaledLruDiskCache.java @@ -3,7 +3,6 @@ import android.os.HandlerThread; import android.os.Looper; import android.os.Process; -import android.os.SystemClock; import android.util.Log; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; @@ -461,7 +460,7 @@ private File getTempFile(String key) { } private static long getLogTime() { - return SystemClock.currentThreadTimeMillis(); + return System.currentTimeMillis(); } private static long getElapsedTime(long startTime) {