From 2606441e3ec1853f82f5abd1e73d012684def645 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 9 Nov 2006 15:13:33 +0000 Subject: [PATCH] Corrected first speed measurement report in TAO mode (which was random) --- trunk/cdrskin/cdrskin.c | 4 +++- trunk/cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/cdrskin/cdrskin.c b/trunk/cdrskin/cdrskin.c index e9019c15..27c20b83 100644 --- a/trunk/cdrskin/cdrskin.c +++ b/trunk/cdrskin/cdrskin.c @@ -3931,6 +3931,8 @@ thank_you_for_patience:; } if(elapsed_time>0.0) measured_speed= written_bytes/elapsed_time; + else if(written_bytes>0.0) + measured_speed= 99.91*Cdrskin_cd_speed_factoR; if(measured_speed<=0.0 && written_total_bytes>=skin->fixed_size && skin->fixed_size>0) { if(!skin->is_writing) @@ -4207,7 +4209,7 @@ int Cdrskin_burn(struct CdrskiN *skin, int flag) burn_disc_write(o, disc); if(skin->preskin->abort_handler==-1) Cleanup_set_handlers(skin,(Cleanup_app_handler_T) Cdrskin_abort_handler,4); - start_time= Sfile_microtime(0); + last_time= start_time= Sfile_microtime(0); burn_write_opts_free(o); diff --git a/trunk/cdrskin/cdrskin_timestamp.h b/trunk/cdrskin/cdrskin_timestamp.h index cbf085c7..aae9b924 100644 --- a/trunk/cdrskin/cdrskin_timestamp.h +++ b/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2006.11.09.113729" +#define Cdrskin_timestamP "2006.11.09.151431"