[gnome-commander/gcmd-1-14] Fix for calculation of total bytes to be transfered



commit c7b393ed92a48dbd20f7e355bb26a6844820e4af
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Jul 17 12:44:54 2022 +0200

    Fix for calculation of total bytes to be transfered

 data/org.gnome.gnome-commander.appdata.xml.in | 2 +-
 src/gnome-cmd-xfer.cc                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/org.gnome.gnome-commander.appdata.xml.in b/data/org.gnome.gnome-commander.appdata.xml.in
index 67a2b7ae..f926a7de 100644
--- a/data/org.gnome.gnome-commander.appdata.xml.in
+++ b/data/org.gnome.gnome-commander.appdata.xml.in
@@ -63,7 +63,7 @@
       <description>
         <p>This release fixes the following bugs:</p>
         <ul>
-          <li>...</li>
+          <li>Fix for showing wrong progress percentage when transfering files</li>
         </ul>
         <p>New or updated translations: ...</p>
         <p>New or updated docs: ...</p>
diff --git a/src/gnome-cmd-xfer.cc b/src/gnome-cmd-xfer.cc
index 80e923ae..057c8224 100644
--- a/src/gnome-cmd-xfer.cc
+++ b/src/gnome-cmd-xfer.cc
@@ -617,7 +617,7 @@ set_files_total(XferData *xferData)
            nullptr,
            &numFiles,
            nullptr);
-        xferData->bytesTotal = diskUsage;
+        xferData->bytesTotal += diskUsage;
         xferData->filesTotal += numFiles;
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]