SusiMail: Thread the loading from disk

This commit is contained in:
zzz
2018-02-09 17:05:32 +00:00
parent 768921b361
commit daf7e86b2f
2 changed files with 67 additions and 4 deletions

View File

@ -269,6 +269,15 @@ public abstract class SystemVersion {
return maxMemory;
}
/**
* Runtime.getRuntime().availableProcssors()
* @return never smaller than 1
* @since 0.9.34
*/
public static int getCores() {
return Runtime.getRuntime().availableProcessors();
}
/**
* The system's time zone, which is probably different from the
* JVM time zone, because Router changes the JVM default to GMT.
@ -313,6 +322,7 @@ public abstract class SystemVersion {
System.out.println(" Version: " + getAndroidVersion());
System.out.println("Apache : " + isApache());
System.out.println("ARM : " + isARM());
System.out.println("Cores : " + getCores());
System.out.println("Gentoo : " + isGentoo());
System.out.println("GNU : " + isGNU());
System.out.println("Linux Svc: " + isLinuxService());