Skip to content

Commit

Permalink
Improved toString().
Browse files Browse the repository at this point in the history
  • Loading branch information
sbordet committed Jul 28, 2017
1 parent be57f7f commit db1322a
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -573,16 +573,16 @@ public List<Resource.Listener> getResourceListeners() {

@Override
public String toString() {
return String.format("%s[t=%d,i=%d,u=%d,c=%d,r=%d,rf=%d,%s://%s:%d]", //
Config.class.getSimpleName(), //
threads, //
iterationsPerThread, //
usersPerThread, //
channelsPerUser, //
resourceRate, //
runFor, //
scheme, //
host, //
return String.format("%s[t=%d,i=%d,u=%d,c=%d,r=%d,rf=%ds,%s://%s:%d]",
Config.class.getSimpleName(),
threads,
runFor > 0 ? -1 : iterationsPerThread,
usersPerThread,
channelsPerUser,
resourceRate,
runFor > 0 ? runFor : -1,
scheme,
host,
port);
}
}
Expand Down

0 comments on commit db1322a

Please sign in to comment.