[Xfce4-commits] [apps/xfburn] 02/02: Bugfix: Buffer fill ranges are now from 0-100% (1-99% before)

noreply at xfce.org noreply at xfce.org
Mon Apr 7 06:01:55 CEST 2014


This is an automated email from the git hooks/post-receive script.

squisher pushed a commit to branch master
in repository apps/xfburn.

commit b1b15d33702c68271403c26452c18dfa0e93eb9f
Author: David Mohr <david at mcbf.net>
Date:   Sun Apr 6 22:01:12 2014 -0600

    Bugfix: Buffer fill ranges are now from 0-100% (1-99% before)
---
 xfburn/xfburn-perform-burn.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/xfburn/xfburn-perform-burn.c b/xfburn/xfburn-perform-burn.c
index c2640cf..539277b 100644
--- a/xfburn/xfburn-perform-burn.c
+++ b/xfburn/xfburn-perform-burn.c
@@ -353,7 +353,7 @@ xfburn_perform_burn_write (GtkWidget *dialog_progress,
           xfburn_progress_dialog_set_status_with_text (XFBURN_PROGRESS_DIALOG (dialog_progress), XFBURN_PROGRESS_DIALOG_STATUS_RUNNING, _("Burning composition..."));
         }
 
-	percent = (gdouble) (progress.buffer_capacity - progress.buffer_available + 1.0) / (gdouble) progress.buffer_capacity * 98.0;
+	percent = (gdouble) (progress.buffer_capacity - progress.buffer_available) / (gdouble) progress.buffer_capacity * 100.0;
 
         /* assume that we don't have buffer info if the result is outside the sane range */
         if (percent >= 0 && percent <= 100.0)
@@ -387,7 +387,7 @@ xfburn_perform_burn_write (GtkWidget *dialog_progress,
               break;
             case 1:
               /* active */
-              percent = (gdouble) (fifo_size - fifo_free + 1.0) / (gdouble) fifo_size * 98.0;
+              percent = (gdouble) (fifo_size - fifo_free) / (gdouble) fifo_size * 100.0;
               xfburn_progress_dialog_set_fifo_bar_fraction (XFBURN_PROGRESS_DIALOG (dialog_progress), percent);
               break;
             case 2:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list