diff options
Diffstat (limited to 'child.c')
-rw-r--r-- | child.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -90,7 +90,7 @@ void child_phase2( dist_info_t *info, uint8_t id, BalanceHistory *history ) { } if( order->s_src == id ) { - snprintf( buf, sizeof(buf), log_transfer_out_fmt, + snprintf( buf, sizeof(buf), log_transfer_out_fmt, get_physical_time(), order->s_src, order->s_amount, order->s_dst ); fputs( buf, info->events_log ); @@ -99,7 +99,7 @@ void child_phase2( dist_info_t *info, uint8_t id, BalanceHistory *history ) { info->balances[ id ] -= order->s_amount; send( &me, order->s_dst, &msg ); } else if( order->s_dst == id ) { - snprintf( buf, sizeof(buf), log_transfer_in_fmt, + snprintf( buf, sizeof(buf), log_transfer_in_fmt, get_physical_time(), order->s_dst, order->s_amount, order->s_src); fputs( buf, info->events_log ); @@ -143,7 +143,7 @@ void child_phase3( dist_info_t *info, uint8_t id, BalanceHistory *history ) { .dist_info = info }; - int size = snprintf( buf, sizeof(buf), log_done_fmt, + int size = snprintf( buf, sizeof(buf), log_done_fmt, get_physical_time(), id, info->balances[ id ] ); @@ -174,7 +174,7 @@ void child_phase3( dist_info_t *info, uint8_t id, BalanceHistory *history ) { } } - snprintf( buf, sizeof(buf), log_received_all_done_fmt, + snprintf( buf, sizeof(buf), log_received_all_done_fmt, get_physical_time(), id ); fputs( buf, info->events_log ); fputs( buf, stdout ); |