121 |
|
|
122 |
|
|
123 |
if (result.bedsteAfstand <= consts.getMaxDistance() ) { //Gem kun hvis distancen er under max_distance for distributøren |
if (result.bedsteAfstand <= consts.getMaxDistance() ) { //Gem kun hvis distancen er under max_distance for distributøren |
124 |
if (LookupMain.verbose == true) { |
if (verbose == true) { |
125 |
logger.fine("(" +workerId + ") Bedste: " + qAdresse + "==>" + result.bedsteAdr + " ::: " + result.bedsteAfstand ); |
logger.fine("(" +workerId + ") Bedste: " + qAdresse + "==>" + result.bedsteAdr + " ::: " + result.bedsteAfstand ); |
126 |
} |
} |
127 |
|
|
136 |
System.exit(0); //hvis at indsættelsen fejler skal vi afbryde med det samme |
System.exit(0); //hvis at indsættelsen fejler skal vi afbryde med det samme |
137 |
} |
} |
138 |
} else { |
} else { |
139 |
if (LookupMain.verbose == true) { |
if (verbose == true) { |
140 |
System.out.println("For stor afstand: " + qAdresse + " > " + result.bedsteAfstand); |
System.out.println("For stor afstand: " + qAdresse + " > " + result.bedsteAfstand); |
141 |
} |
} |
142 |
} |
} |