Reporting correct speed unit with -check_media use=outdev

master
Thomas Schmitt 11 years ago
parent ec01b598b9
commit 8ade912d76
  1. 3
      xorriso/drive_mgt.c
  2. 4
      xorriso/text_io.c
  3. 2
      xorriso/xorriso_timestamp.h

@ -2424,7 +2424,8 @@ failed_to_write:;
if(post_read_time - xorriso->last_update_time >=
xorriso->pacifier_interval)
Xorriso_pacifier_callback(xorriso, "blocks read",
xorriso->pacifier_count, xorriso->pacifier_total, "", 8 | 16);
xorriso->pacifier_count, xorriso->pacifier_total, "",
8 | 16 | (128 * (job->use_dev == 1)));
}
}
if(prev_quality >= 0) {

@ -2011,6 +2011,7 @@ int Xorriso_pacifier_reset(struct XorrisO *xorriso, int flag)
bit4= with bit3: count is in blocks, else in bytes
bit5= with bit3: report total speed
bit6= report with carriage return rather than line feed
bit7= with bit5: speed unit for outdev rather than indev
*/
int Xorriso_pacifier_callback(struct XorrisO *xorriso, char *what_done,
off_t count, off_t todo, char *current_object,
@ -2067,7 +2068,8 @@ int Xorriso_pacifier_callback(struct XorrisO *xorriso, char *what_done,
if(speed >= 0.0) {
if(flag & 16)
speed*= 2048.0;
ret= Xorriso_get_profile(xorriso, &profile_number, profile_name, 0);
ret= Xorriso_get_profile(xorriso, &profile_number, profile_name,
(flag >> 6) & 2);
speed_factor= 1385000;
speed_unit= "D";
if(ret == 2) {

@ -1 +1 @@
#define Xorriso_timestamP "2012.02.01.122709"
#define Xorriso_timestamP "2012.02.01.162935"

Loading…
Cancel
Save