Reporting correct speed unit with -check_media use=outdev

This commit is contained in:
Thomas Schmitt 2012-02-01 16:29:26 +00:00
parent 8b19d2dafc
commit 475dc5909e
3 changed files with 6 additions and 3 deletions

View File

@ -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) {

View File

@ -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) {

View File

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