projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/test: Compute and show height error tracker in ao_flight_test
[fw/altos]
/
altoslib
/
AltosMapStore.java
diff --git
a/altoslib/AltosMapStore.java
b/altoslib/AltosMapStore.java
index 53bfd5170afd401ef629e5dbf436574b8bb451dd..4eba3a044296987c5f1ebaa3b0a3cff548a8e3de 100644
(file)
--- a/
altoslib/AltosMapStore.java
+++ b/
altoslib/AltosMapStore.java
@@
-3,7
+3,8
@@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-15,7
+16,7
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altoslib_1
1
;
+package org.altusmetrum.altoslib_1
2
;
import java.io.*;
import java.net.*;
import java.io.*;
import java.net.*;
@@
-90,6
+91,7
@@
public class AltosMapStore {
static Object forbidden_lock = new Object();
static long forbidden_time;
static boolean forbidden_set;
static Object forbidden_lock = new Object();
static long forbidden_time;
static boolean forbidden_set;
+ public static int forbidden_response;
private int fetch_url() {
URL u;
private int fetch_url() {
URL u;
@@
-115,6
+117,7
@@
public class AltosMapStore {
synchronized (forbidden_lock) {
forbidden_time = System.nanoTime();
forbidden_set = true;
synchronized (forbidden_lock) {
forbidden_time = System.nanoTime();
forbidden_set = true;
+ forbidden_response = response;
return AltosMapTile.forbidden;
}
}
return AltosMapTile.forbidden;
}
}