Skip to content

Commit

Permalink
Avoid the usage of depricated Duration.ONE_HOUR
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikVerheul committed Nov 2, 2021
1 parent bdc0f65 commit 63d724b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/java/nl/verheulconsultants/monitorisp/ui/Start.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package nl.verheulconsultants.monitorisp.ui;

import org.apache.wicket.util.time.Duration;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.bio.SocketConnector;
import org.eclipse.jetty.server.ssl.SslSocketConnector;
Expand All @@ -19,7 +18,7 @@ public class Start {
* @throws Exception
*/
public static void main(String[] args) throws Exception {
int timeout = (int) Duration.ONE_HOUR.getMilliseconds();
int timeout = 3600*1000; // one hour in milis

Server server = new Server();
SocketConnector connector = new SocketConnector();
Expand Down Expand Up @@ -69,7 +68,7 @@ public static void main(String[] args) throws Exception {
// mBeanContainer.start();

server.setHandler(bb);

try {
System.out.println(">>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP");
server.start();
Expand Down

0 comments on commit 63d724b

Please sign in to comment.