[chronojump] Fixed showing of full backup size now shows full data (except old backups dir)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed showing of full backup size now shows full data (except old backups dir)
- Date: Thu, 19 Aug 2021 16:51:24 +0000 (UTC)
commit e3f06a938e95c444adf2a4866469fea6e27f54d9
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Aug 19 18:50:31 2021 +0200
Fixed showing of full backup size now shows full data (except old backups dir)
src/gui/app1/session/backup.cs | 5 ++---
src/util.cs | 3 ++-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/app1/session/backup.cs b/src/gui/app1/session/backup.cs
index fcde51aef..6bb4b6890 100644
--- a/src/gui/app1/session/backup.cs
+++ b/src/gui/app1/session/backup.cs
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Copyright (C) 2020 Xavier de Blas <xaviblas gmail com>
+ * Copyright (C) 2020-2021 Xavier de Blas <xaviblas gmail com>
*/
using System;
@@ -65,8 +65,7 @@ public partial class ChronoJumpWindow
app1s_notebook.CurrentPage = app1s_PAGE_BACKUP;
- int files, sizeInKB;
- Util.GetBackupsSize (out files, out sizeInKB);
+ int sizeInKB = Util.GetFullDataSize (false);
app1s_label_backup_estimated_size.Text = string.Format(Catalog.GetString("Estimated size: {0}
MB."),
UtilAll.DivideSafe(sizeInKB, 1000));
}
diff --git a/src/util.cs b/src/util.cs
index a4afcc36e..c4a174f83 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * Copyright (C) 2004-2020 Xavier de Blas <xaviblas gmail com>
+ * Copyright (C) 2004-2021 Xavier de Blas <xaviblas gmail com>
*/
using System;
@@ -1380,6 +1380,7 @@ public class Util
}
}
+ //size of the "backups" dir (used for automatic backups on start < 2.1.3)
public static void GetBackupsSize (out int files, out int sizeInKB)
{
DirectoryInfo info = new DirectoryInfo(backupDir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]