Corrected block count messages with -check_media sector_map=

This commit is contained in:
Thomas Schmitt 2016-08-25 20:51:30 +00:00
parent 76c8ac3358
commit 7a1db814e9
2 changed files with 5 additions and 3 deletions

View File

@ -2685,7 +2685,7 @@ int Xorriso_check_interval(struct XorrisO *xorriso, struct SpotlisT *spotlist,
struct burn_drive *drive;
struct burn_drive_info *dinfo;
char *data= NULL, *data_pt;
off_t data_count, to_read, read_count= 0, write_amount;
off_t data_count, to_read, read_count= 0, write_amount, skipped_to_read;
double pre_read_time, post_read_time, time_diff, total_time_diff= 0;
double last_abort_file_time= 0;
void *ctx= NULL;
@ -2838,6 +2838,7 @@ abort_check:;
}
to_read= read_chunk;
skipped_to_read= 0;
suspect_tao_end= 0;
if(i + to_read > block_count)
to_read= block_count - i;
@ -2875,6 +2876,7 @@ abort_check:;
if(skip_reading) {
pre_read_time= post_read_time= Sfile_microtime(0);
skipped_to_read= to_read;
} else {
data_count= 0;
pre_read_time= Sfile_microtime(0);
@ -2986,7 +2988,7 @@ failed_to_write:;
prev_quality= quality;
}
if(!(flag & 2)) {
xorriso->pacifier_count+= to_read;
xorriso->pacifier_count+= to_read - skipped_to_read;
if(post_read_time - xorriso->last_update_time >=
xorriso->pacifier_interval)
Xorriso_pacifier_callback(xorriso, "blocks read",

View File

@ -1 +1 @@
#define Xorriso_timestamP "2016.08.20.085236"
#define Xorriso_timestamP "2016.08.25.205059"