Reporting correct speed unit with -check_media use=outdev
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user