Skip to content

Commit

Permalink
Removed a bit of unnecessary work
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 27, 2015
1 parent 8822da4 commit d2877bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/camio_perf/camio_perf_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ static void on_new_buff(camio_muxable_t* muxable)
}

//Figure out how much we should send. -- Just some basic sanity checking
const ch_word req_bytes = MAX((size_t)options.len, sizeof(camio_perf_packet_head_t));
const ch_word bytes_to_send = MIN(req_bytes,res->buffer->data_len);

// const ch_word req_bytes = MAX((size_t)options.len, sizeof(camio_perf_packet_head_t));
// const ch_word bytes_to_send = MIN(req_bytes,res->buffer->data_len);
//
//Initialize the packet with some non zero junk
for(int i = 0; i < bytes_to_send; i++){
*((char*)res->buffer->data_start + i) = i % 27 + 'A';
}
// for(int i = 0; i < bytes_to_send; i++){
// *((char*)res->buffer->data_start + i) = i % 27 + 'A';
// }

//Now that we have a buffer, try to send
send_message(muxable);
Expand Down

0 comments on commit d2877bf

Please sign in to comment.