From d118b82a130c4f5c64c5be7f0c139ec10f3c1df0 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 11 Nov 2009 10:07:03 +0000 Subject: [PATCH] Reporting number of pending bytes while thanking for patience in -vvv mode --- cdrskin/cdrskin.c | 9 ++++++--- cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cdrskin/cdrskin.c b/cdrskin/cdrskin.c index e8132c2..f93f3d4 100644 --- a/cdrskin/cdrskin.c +++ b/cdrskin/cdrskin.c @@ -5838,7 +5838,7 @@ int Cdrskin_burn_pacifier(struct CdrskiN *skin, double estim_time,estim_minutes,estim_seconds,percent; int ret,fifo_percent,fill,space,advance_interval=0,new_mb,old_mb,time_to_tell; int fs,bs,old_track_idx,buffer_fill,formatting= 0,use_data_image_size; - char fifo_text[80],mb_text[40]; + char fifo_text[80],mb_text[40], pending[40]; char *debug_mark= ""; /* use this to prepend a marker text for experiments */ /* for debugging */ @@ -5944,9 +5944,12 @@ thank_you_for_patience:; if(skin->verbosity>=Cdrskin_verbose_progresS) { if(skin->is_writing) fprintf(stderr,"\n"); + pending[0]= 0; + if(bytes_to_write > 0 && skin->verbosity >= Cdrskin_verbose_debuG) + sprintf(pending, " pnd %.f", bytes_to_write - written_total_bytes); fprintf(stderr, - "\rcdrskin: thank you for being patient for %.f seconds ", - elapsed_total_time); + "\rcdrskin: thank you for being patient for %.f seconds%21.21s", + elapsed_total_time, pending); } advance_interval= 1; } diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index a6f3748..195ccc4 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.11.11.100714" +#define Cdrskin_timestamP "2009.11.11.100822"