diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-06-25 12:00:56 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-06-25 12:00:56 +0200 |
commit | fc602a713d3d3df2816670ea9aa75dbbe17aff59 (patch) | |
tree | abbd2bb1d9a55a97d06cd46eead56335e986fdd6 | |
parent | a7fe71c6917b3a15b10ad6a86be5438312372e67 (diff) |
show taken time for deleted webpreview cache
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 3 |
1 files changed, 2 insertions, 1 deletions
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<Account> pingCandidates) { |