Browse Source

imprved ram usage

tags/v0.2
mrbesen 1 year ago
parent
commit
d8ac03b038
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      Server/BesenBoincServer/src/Job/JobManager.java

+ 3
- 0
Server/BesenBoincServer/src/Job/JobManager.java View File

@@ -95,6 +95,7 @@ public class JobManager implements Iterator<Job>{

j.compiled = true;
j.classname = classname;
j.code = null;
enqued.remove(0);//manage ques
todo.add(j);
@@ -225,6 +226,8 @@ public class JobManager implements Iterator<Job>{
if(j != null) {
send.remove(pos);
done.add(j);
j.classfile = null;

//TODO: delete old done jobs, to preverse Memory?
} else {
System.out.println("Job id " + jobId + " not found");

Loading…
Cancel
Save