Skip to content

Commit

Permalink
Fix logging time in JournaledLruDiskCache.java
Browse files Browse the repository at this point in the history
currentThreadTimeMillis() returns how long the current thread has been executing, not the current time.
  • Loading branch information
kluever authored and kanelbulle committed Oct 18, 2024
1 parent a98b301 commit ca394b1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit ca394b1

Please sign in to comment.