Displaying 1 result from an estimated 1 matches for "total_data_written".
2015 Sep 06
1
[Bug 11496] New: itemized logging of transferred bytes is cumulative instead of per file
.../badblocks
2015/09/06 14:21:28 [987] send >f+++++++++ 1017147 31544 sbin/blkid
I looked at the code and the previous value seems to be stored in a static
using a call to the function below:
void remember_initial_stats(void)
{
initial_data_read = total_data_read;
initial_data_written = total_data_written;
}
In function 'log_formatted' the following code is used:
case 'b':
if (!(iflags & ITEM_TRANSFER))
b = 0;
else if (am_sender)
b = total_data_written - initial_data_written;
else
b = total_data...