Skip to content

Commit

Permalink
Limit extra sleep of BusyThread on LowMemCycle
Browse files Browse the repository at this point in the history
  • Loading branch information
reger committed May 17, 2015
1 parent cd7c0e0 commit 13f013f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/kelondro/workflow/AbstractBusyThread.java
Expand Up @@ -252,7 +252,7 @@ public void run() {
// do a clean-up
this.freemem();
// sleep a while
ratz(this.idlePause + 1000*(outofmemoryCycles++));
ratz(this.idlePause + 1000*(outofmemoryCycles++ % 0x0F)); // limit extra sleep time (oomCycles can grow big over time)
idletime += System.currentTimeMillis() - timestamp;
}
}
Expand Down

0 comments on commit 13f013f

Please sign in to comment.