odissey: include total sent/recv bytes in console stats
@@ -142,12 +142,14 @@ od_console_show_stats_add(shapito_stream_t *stream,
return -1;
/* total_received */
- rc = shapito_be_write_data_row_add(stream, offset, "0", 1);
+ data_len = snprintf(data, sizeof(data), "%" PRIu64, total->bytes_recv);
+ rc = shapito_be_write_data_row_add(stream, offset, data, data_len);
if (rc == -1)
return -1;
/* total_sent */
- rc = shapito_be_write_data_row_add(stream, offset, "0", 1);
+ data_len = snprintf(data, sizeof(data), "%" PRIu64, total->bytes_sent);
+ rc = shapito_be_write_data_row_add(stream, offset, data, data_len);
if (rc == -1)
return -1;
