aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-06-25 12:00:56 +0200
committerChristian Schneppe <christian@pix-art.de>2019-06-25 12:00:56 +0200
commitfc602a713d3d3df2816670ea9aa75dbbe17aff59 (patch)
treeabbd2bb1d9a55a97d06cd46eead56335e986fdd6 /src/main/java
parenta7fe71c6917b3a15b10ad6a86be5438312372e67 (diff)
show taken time for deleted webpreview cache
Diffstat (limited to '')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java3
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) {