Made Xorriso_format_media() ready for long block adresses

This commit is contained in:
Thomas Schmitt 2024-03-24 10:09:54 +01:00
parent fcad0813dc
commit 14676ef132
2 changed files with 3 additions and 3 deletions

View File

@ -1999,7 +1999,7 @@ int Xorriso_format_media(struct XorrisO *xorriso, off_t in_size, int flag)
unsigned dummy;
struct burn_drive_info *dinfo;
struct burn_drive *drive;
struct burn_progress p;
struct burn_progress_v2 p;
double percent = 1.0;
int current_profile;
char current_profile_name[80], progress_text[40];
@ -2122,7 +2122,7 @@ int Xorriso_format_media(struct XorrisO *xorriso, off_t in_size, int flag)
usleep(1000000);
if(!using_immed)
sprintf(progress_text, "synchronously since");
while (burn_drive_get_status(drive, &p) != BURN_DRIVE_IDLE) {
while (burn_drive_get_status_v2(drive, &p) != BURN_DRIVE_IDLE) {
Xorriso_process_msg_queues(xorriso,0);
if(p.sectors>0 && p.sector>=0) /* display 1 to 99 percent */
percent = 1.0 + ((double) p.sector+1.0) / ((double) p.sectors) * 98.0;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2024.03.24.084501"
#define Xorriso_timestamP "2024.03.24.085148"