Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Jun 15, 2005
1 parent 6537622 commit 62e81a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/perf/org/jgroups/tests/perf/Test.java
Expand Up @@ -56,6 +56,7 @@ public class Test implements Receiver {




public void start(Properties c, boolean verbose) throws Exception {
String config_file="config.txt";
BufferedReader fileReader;
Expand Down Expand Up @@ -245,7 +246,7 @@ private void handleData(Object sender, int num_bytes) {
info.num_msgs_received++;
counter++;
info.total_bytes_received+=num_bytes;
if(info.num_msgs_received % 1000 == 0)
if(info.num_msgs_received % log_interval == 0)
System.out.println("-- received " + info.num_msgs_received +
" messages from " + sender);

Expand Down Expand Up @@ -304,7 +305,7 @@ void sendMessages() throws Exception {
long total_msgs=0;
int msgSize=Integer.parseInt(config.getProperty("msg_size"));
int num_msgs=Integer.parseInt(config.getProperty("num_msgs"));
int logInterval=Integer.parseInt(config.getProperty("log_interval"));
// int logInterval=Integer.parseInt(config.getProperty("log_interval"));
// boolean gnuplot_output=Boolean.getBoolean(config.getProperty("gnuplot_output", "false"));
byte[] buf=new byte[msgSize];
for(int k=0; k < msgSize; k++)
Expand All @@ -314,10 +315,10 @@ void sendMessages() throws Exception {
for(int i=0; i < num_msgs; i++) {
transport.send(null, payload);
total_msgs++;
if(total_msgs % 1000 == 0) {
if(total_msgs % log_interval == 0) {
System.out.println("++ sent " + total_msgs);
}
if(total_msgs % logInterval == 0) {
if(total_msgs % log_interval == 0) {
//if(gnuplot_output == false)
// if(log.isInfoEnabled()) log.info(dumpStats(total_msgs));
}
Expand Down

0 comments on commit 62e81a7

Please sign in to comment.