38 |
|
|
39 |
|
// why oh why wont ultra edit let me put Long in the next line? oh its trying to |
40 |
|
// correct keywords =| |
41 |
+ |
/* |
42 |
+ |
|
43 |
|
try { |
44 |
|
udpcheckInterval = Long.parseLong(config.getProperty("UDPUpdateTime")) * 1000; |
45 |
|
} |
48 |
|
// 5 mins |
49 |
|
udpcheckInterval = 5000 * 60; |
50 |
|
} |
51 |
+ |
*/ |
52 |
+ |
|
53 |
|
// make the check interval into seconds |
54 |
|
|
55 |
|
} |
81 |
|
xml.addString(details.getItems()); |
82 |
|
|
83 |
|
|
84 |
+ |
/* |
85 |
|
// MUST FIX THIS..!!!! |
86 |
|
try { |
87 |
|
long updateIn = ( lastCheck + udpcheckInterval )-System.currentTimeMillis(); |
96 |
|
catch( InterruptedException e ){ |
97 |
|
System.out.println("Sleep interrupted"); |
98 |
|
} |
99 |
+ |
*/ |
100 |
|
|
101 |
|
// increment sequence. |
102 |
|
sequence++; |
103 |
< |
lastCheck = System.currentTimeMillis(); |
103 |
> |
// lastCheck = System.currentTimeMillis(); |
104 |
|
|
105 |
|
// finally return a string |
106 |
|
return xml.returnXML(); |
114 |
|
|
115 |
|
private long lastCheck; |
116 |
|
private int sequence; |
111 |
– |
private long udpcheckInterval; |
112 |
– |
private final long defaultUpdateTime = 60000; |
117 |
|
|
118 |
|
//---STATIC ATTRIBUTES--- |
119 |
|
|