ignore nanos component of token filler wait

This commit is contained in:
Jonathan Shook 2020-12-22 23:17:00 -06:00
parent 5a0d9307bf
commit 41adf58840

View File

@ -133,7 +133,7 @@ public class ThreadDrivenTokenPool implements TokenPool {
blocks++; blocks++;
//System.out.println(ANSI_BrightRed + "waiting for " + amt + "/" + activePool + " of max " + maxActivePool + ANSI_Reset); //System.out.println(ANSI_BrightRed + "waiting for " + amt + "/" + activePool + " of max " + maxActivePool + ANSI_Reset);
try { try {
wait(maxActivePool / 1000000, (int) maxActivePool % 1000000); wait(maxActivePool / 1000000, 0);
} catch (InterruptedException ignored) { } catch (InterruptedException ignored) {
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);