mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57:48 +01:00
less often writeback
This commit is contained in:
@@ -43,7 +43,7 @@ public class JObjectWriteback {
|
||||
flush();
|
||||
}
|
||||
|
||||
@Scheduled(every = "1s", concurrentExecution = Scheduled.ConcurrentExecution.SKIP)
|
||||
@Scheduled(every = "2s", concurrentExecution = Scheduled.ConcurrentExecution.SKIP)
|
||||
@RunOnVirtualThread
|
||||
public void flush() {
|
||||
while (true) {
|
||||
@@ -100,7 +100,7 @@ public class JObjectWriteback {
|
||||
}
|
||||
|
||||
// FIXME: better logic
|
||||
if (_objects.size() < 5000) {
|
||||
if (_objects.size() < 10000) {
|
||||
_objects.put(name, object);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user