|
From: Jonathan L. <le...@us...> - 2006-12-14 15:00:19
|
Update of /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/nc/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1171/src/edu/harvard/syrah/pyxida/nc/lib Modified Files: NCClient.java Log Message: added isNaN error check to nclib Index: NCClient.java =================================================================== RCS file: /cvsroot/pyxida/Pyxida/src/edu/harvard/syrah/pyxida/nc/lib/NCClient.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** NCClient.java 4 Dec 2006 16:32:44 -0000 1.3 --- NCClient.java 14 Dec 2006 15:00:15 -0000 1.4 *************** *** 609,613 **** // happen again and again. // Note that error is checked and fixed in updateError() ! if (!sys_coord.isValid()) { System.err.println("Warning: resetting Vivaldi coordinate"); if (debugCrawler || SIMULATION) --- 609,613 ---- // happen again and again. // Note that error is checked and fixed in updateError() ! if (!sys_coord.isValid() || Double.isNaN(error)) { System.err.println("Warning: resetting Vivaldi coordinate"); if (debugCrawler || SIMULATION) *************** *** 616,620 **** } ! if (r_error <= 0. || r_error > MAX_ERROR || !_r_coord.isValid()) { if (debugCrawler) crawler_log.info(id + " BUSTED his coord is busted: r_error " + r_error + " r_coord " --- 616,621 ---- } ! if (r_error <= 0. || r_error > MAX_ERROR || Double.isNaN(r_error) || ! !_r_coord.isValid()) { if (debugCrawler) crawler_log.info(id + " BUSTED his coord is busted: r_error " + r_error + " r_coord " |