Fixed the timeout time logic cause java

I fucking hate java.