Avoided display of negative speed numbers at track change

This commit is contained in:
Thomas Schmitt 2012-01-13 10:18:52 +00:00
parent 34195c3037
commit a0540651eb
2 changed files with 5 additions and 3 deletions

View File

@ -6010,6 +6010,7 @@ int Cdrskin_burn_pacifier(struct CdrskiN *skin, int start_tno,
printf("%sTrack %-2.2d: Total bytes read/written: %.f/%.f (%.f sectors).\n", printf("%sTrack %-2.2d: Total bytes read/written: %.f/%.f (%.f sectors).\n",
debug_mark, old_track_idx + start_tno, fixed_size,fixed_size+padding, debug_mark, old_track_idx + start_tno, fixed_size,fixed_size+padding,
(fixed_size+padding)/sector_size); (fixed_size+padding)/sector_size);
*last_count= 0;
} }
sector_size= 2048.0; sector_size= 2048.0;
@ -6070,10 +6071,11 @@ thank_you_for_patience:;
} }
if(written_bytes==written_total_bytes && elapsed_total_time>0) { if(written_bytes==written_total_bytes && elapsed_total_time>0) {
measured_speed= measured_total_speed; measured_speed= measured_total_speed;
} else if(elapsed_time>0.0) } else if(elapsed_time>0.0) {
measured_speed= written_bytes/elapsed_time; measured_speed= written_bytes/elapsed_time;
else if(written_bytes>0.0) } else if(written_bytes>0.0) {
measured_speed= 99.91*Cdrskin_speed_factoR; measured_speed= 99.91*Cdrskin_speed_factoR;
}
if(measured_speed<=0.0 && written_total_bytes>=skin->fixed_size && if(measured_speed<=0.0 && written_total_bytes>=skin->fixed_size &&
skin->fixed_size>0) { skin->fixed_size>0) {

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2012.01.12.191143" #define Cdrskin_timestamP "2012.01.13.101844"