MCPcopy Create free account
hub / github.com/M66B/FairEmail / getFreeMem

Method getFreeMem

app/src/main/java/eu/faircode/email/Log.java:1889–1894  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1887 }
1888
1889 private static long getFreeMem() {
1890 Runtime rt = Runtime.getRuntime();
1891 long used = (rt.totalMemory() - rt.freeMemory());
1892 long max = rt.maxMemory();
1893 return (max - used);
1894 }
1895
1896 static int getFreeMemMb() {
1897 return (int) (getFreeMem() / 1024L / 1024L);

Callers 1

getFreeMemMbMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected