Skip to content

Commit

Permalink
Merge commit '0d868faebd88953524e0e90d159b803c188c57ef' into issue-3745
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed Mar 16, 2016
2 parents 471eb5e + 0d868fa commit e5509df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ public class LoadGeneratingClient extends BaseClient {
private static final Random random = new Random(System.currentTimeMillis());

public static void main(String[] args) throws Exception {
if (args.length != 2) {
if (args.length != 1) {
System.err
.println("Please specify an authentication key and number of clients");
.println("Please specify number of clients");
System.exit(1);
}

int numClients = Integer.parseInt(args[1]);
int numClients = Integer.parseInt(args[0]);

System.out.println("Server: " + args[0] + " NumClients: "
+ numClients + " Target Delta: " + TARGET_DELTA);
System.out.println("NumClients: " + numClients + " Target Delta: "
+ TARGET_DELTA);

Client client = newClient();
long checkStart = System.currentTimeMillis();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@

public class LongRunningClient extends BaseClient {
public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.err.println("Please specify an authentication key");
System.exit(1);
}

Random rand = new Random(System.currentTimeMillis());
int id = Math.abs(rand.nextInt(100));
Client client = newClient();
Expand Down

0 comments on commit e5509df

Please sign in to comment.