Skip to content
Browse files

small fixes

  • Loading branch information...
1 parent fa3bd4c commit 140466aed0ebf2acfe0aa7d1afd5dfd44383237b cap_protect committed
View
2 Crawler.groovy
@@ -3,7 +3,7 @@
import java.util.regex.Pattern;
try {
- List urls = GLOBALS.list("urls", "http://google.com");
+ List urls = GLOBALS.list("urls");
String url = Variations.any(urls);
HTTP.get({ line ->
for (String href : HTTP.parse(Pattern.compile("href=[\"\']([^\"\']+)[\"\']"), line)) {
View
BIN loadtest-1.0.jar
Binary file not shown.
View
1 src/main/java/org/loadtest/LoadTest.java
@@ -69,6 +69,7 @@ public static void main(String[] args) throws IOException {
LoadTest testload = new LoadTest(new Options().parse(args));
Scanner scanner = new Scanner(System.in);
try {
+ Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
do {
System.out.println("Starting(press q[ENTER] - to quit, [ENTER] - to stop)");
testload.start();
View
2 src/main/resources/org/loadtest/Classes.groovy
@@ -130,7 +130,7 @@ public class Globals {
return values.get(name);
}
- public synchronized List list(String name, String []defaultValues) {
+ public synchronized List list(String name, String ...defaultValues) {
List list = (List) values.get(name);
if (list == null) {
list = Collections.synchronizedList(new ArrayList(Arrays.asList(defaultValues)));

0 comments on commit 140466a

Please sign in to comment.
Something went wrong with that request. Please try again.