Bug fix: Minimum drive buffer fill was measured before the buffer could get full

This commit is contained in:
Thomas Schmitt 2014-04-06 11:10:29 +00:00
parent 720dc2406c
commit 9343e1dd95
2 changed files with 6 additions and 5 deletions

View File

@ -3148,7 +3148,7 @@ set_severities:;
int major, minor, micro;
printf(
"Cdrecord 2.01a27 Emulation. Copyright (C) 2006-2013, see libburnia-project.org\n");
"Cdrecord 2.01a27 Emulation. Copyright (C) 2006-2014, see libburnia-project.org\n");
if(o->fallback_program[0]) {
char *hargv[2];
@ -6692,8 +6692,9 @@ thank_you_for_patience:;
buffer_fill= (double) (p->buffer_capacity - p->buffer_available)*100.0
/ (double) p->buffer_capacity;
if(buffer_fill<*min_buffer_fill)
*min_buffer_fill= buffer_fill;
if(p->buffered_bytes > p->buffer_capacity)
if(buffer_fill < *min_buffer_fill)
*min_buffer_fill= buffer_fill;
printf("%s%sTrack %-2.2d: %s MB written %s[buf %3d%%] %4.1fx.%s",
skin->pacifier_with_newline ? "" : "\r",

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2014.03.17.221810"
#define Cdrskin_timestamP "2014.04.06.111004"