Commit 2013bcaf authored by Xin Wang's avatar Xin Wang

bug fix

parent 31d45b45
......@@ -2132,7 +2132,7 @@ static void get_next_mpi_operation(nw_state* s, tw_bf * bf, nw_message * m, tw_l
void nw_test_finalize(nw_state* s, tw_lp* lp)
{
int written = 0;
int written = 0; written2 = 0;
if(!s->nw_id)
written = sprintf(s->output_buf, "# Format <LP ID> <Terminal ID> <Total sends> <Total Recvs> <Bytes sent> <Bytes recvd> <Send time> <Comm. time> <Compute time>");
......@@ -2230,7 +2230,7 @@ void nw_test_finalize(nw_state* s, tw_lp* lp)
}
lp_io_write(lp->gid, "mpi-col-stats", written2, s->output_buf);
}
avg_time += s->elapsed_time;
avg_comm_time += (s->elapsed_time - s->compute_time);
avg_wait_time += s->wait_time;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment