From f9f6d3644f686198a1109b9cce81f3245035b798 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Tue, 28 Aug 2012 20:41:32 +0200 Subject: [PATCH] typo --- playground/netcache/Netcache.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playground/netcache/Netcache.java b/playground/netcache/Netcache.java index 134e154e..ecc0d6be 100644 --- a/playground/netcache/Netcache.java +++ b/playground/netcache/Netcache.java @@ -16,8 +16,8 @@ import java.net.*; import java.security.*; public class Netcache implements Runnable, Comparator { - private static int PORT_UPLOAD = 51200; //11001; - private static int PORT_DOWNLOAD = 51200; //12001; + private static int PORT_UPLOAD = 11001; + private static int PORT_DOWNLOAD = 12001; private static String CACHEDIR = "/tmp/wafcache/"; private static long MAX = 10l * 1024l * 1024l * 1024l; private static double CLEANRATIO = 0.8; @@ -75,7 +75,7 @@ public class Netcache implements Runnable, Comparator { ServerSocket server = new ServerSocket(port); server.setReuseAddress(true); while(true) { - Netcache tmp = new Netcache(server.accept(), PORT_UPLOAD); + Netcache tmp = new Netcache(server.accept(), port); Thread t = new Thread(tmp); t.start(); }