mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Added storage space debug info
This commit is contained in:
@@ -541,6 +541,9 @@ public class Log {
|
||||
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
sb.append(String.format("Memory class: %d\r\n", am.getMemoryClass()));
|
||||
|
||||
sb.append(String.format("Storage space: %s\r\n",
|
||||
Helper.humanReadableByteCount(Helper.getStorageSpace(), true)));
|
||||
|
||||
Runtime rt = Runtime.getRuntime();
|
||||
long hused = (rt.totalMemory() - rt.freeMemory()) / 1024L;
|
||||
long hmax = rt.maxMemory() / 1024L;
|
||||
|
||||
Reference in New Issue
Block a user