Skip to content

Commit

Permalink
refactoring code
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiovirginio2 committed Jun 29, 2022
1 parent 9b4da2b commit 756bbe2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/br/ufba/jnose/WicketApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,18 @@ public void init() {
USERHOME = System.getProperty("user.home");
System.out.println("OS current user home directory is " + USERHOME);

Runtime runTime = Runtime.getRuntime();

String strTmp = System.getProperty("java.io.tmpdir");
System.out.println("OS current temporary directory: " + strTmp);
System.out.println("OS Name: " + System.getProperty("os.name"));
System.out.println("OS Version: " + System.getProperty("os.version"));
System.out.println("OS user home directory is " + USERHOME);
System.out.println("JDK Version: " + System.getProperty("java.version"));
System.out.println("JDK VM Version: " + System.getProperty("java.vm.version"));
System.out.println("Cores: " + runTime.availableProcessors());
System.out.println("Mem free: " + runTime.freeMemory() + " bytes");
System.out.println("Mem total: " + runTime.totalMemory() + " bytes");


JNOSE_PROJECTS_FOLDER = USERHOME+ File.separator + ".jnose_projects" + File.separator;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/br/ufba/jnose/base/JNose.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Integer maxStatements() {
};

if(jNoseCore == null) {
jNoseCore = new JNoseCore(conf, 3);
jNoseCore = new JNoseCore(conf, Runtime.getRuntime().availableProcessors() * 2);
}

return jNoseCore;
Expand Down

0 comments on commit 756bbe2

Please sign in to comment.