From fc602a713d3d3df2816670ea9aa75dbbe17aff59 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 25 Jun 2019 12:00:56 +0200 Subject: show taken time for deleted webpreview cache --- src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 968365f57..8ce549e8c 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -766,6 +766,7 @@ public class XmppConnectionService extends Service { } private void deleteWebpreviewCache() { + long start = SystemClock.elapsedRealtime(); final String path = getApplicationContext().getCacheDir() + "/" + RICH_LINK_METADATA; final Calendar time = Calendar.getInstance(); time.add(Calendar.DAY_OF_YEAR, -7); @@ -782,7 +783,7 @@ public class XmppConnectionService extends Service { count++; } } - Log.d(Config.LOGTAG, "Deleted " + count + " old webpreview cache files"); + Log.d(Config.LOGTAG, "Deleted " + count + " expired webpreview cache files in " + (SystemClock.elapsedRealtime() - start) + "ms"); } private boolean processAccountState(Account account, boolean interactive, boolean isUiAction, boolean isAccountPushed, HashSet pingCandidates) { -- cgit v1.2.3