Reporting correct speed unit with -check_media use=outdev
This commit is contained in:
parent
ec01b598b9
commit
8ade912d76
@ -2424,7 +2424,8 @@ failed_to_write:;
|
|||||||
if(post_read_time - xorriso->last_update_time >=
|
if(post_read_time - xorriso->last_update_time >=
|
||||||
xorriso->pacifier_interval)
|
xorriso->pacifier_interval)
|
||||||
Xorriso_pacifier_callback(xorriso, "blocks read",
|
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) {
|
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
|
bit4= with bit3: count is in blocks, else in bytes
|
||||||
bit5= with bit3: report total speed
|
bit5= with bit3: report total speed
|
||||||
bit6= report with carriage return rather than line feed
|
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,
|
int Xorriso_pacifier_callback(struct XorrisO *xorriso, char *what_done,
|
||||||
off_t count, off_t todo, char *current_object,
|
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(speed >= 0.0) {
|
||||||
if(flag & 16)
|
if(flag & 16)
|
||||||
speed*= 2048.0;
|
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_factor= 1385000;
|
||||||
speed_unit= "D";
|
speed_unit= "D";
|
||||||
if(ret == 2) {
|
if(ret == 2) {
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2012.02.01.122709"
|
#define Xorriso_timestamP "2012.02.01.162935"
|
||||||
|
Loading…
Reference in New Issue
Block a user