summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-11-30 19:29:37 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-11-30 20:19:08 +0100
commit3fdcda46629e8e7fc19e89c51350b1e6f151e05e (patch)
treec392e0fdcf8e61e5abfb88099fd8d9b1f1ff8a70 /partitionmanager.cpp
parentFix adb shell in 7.0 tree (diff)
downloadandroid_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.gz
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.bz2
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.lz
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.xz
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.tar.zst
android_bootable_recovery-3fdcda46629e8e7fc19e89c51350b1e6f151e05e.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index b04cc9ab8..079d476b3 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -40,7 +40,7 @@
#include "twrp-functions.hpp"
#include "fixContexts.hpp"
#include "twrpDigest.hpp"
-#include "twrpDU.hpp"
+#include "exclude.hpp"
#include "set_metadata.h"
#include "tw_atomic.hpp"
#include "gui/gui.hpp"
@@ -835,9 +835,10 @@ int TWPartitionManager::Run_Backup(bool adbbackup) {
int total_time = (int) difftime(total_stop, total_start);
uint64_t actual_backup_size;
- if (!adbbackup)
- actual_backup_size = du.Get_Folder_Size(part_settings.Backup_Folder);
- else
+ if (!adbbackup) {
+ TWExclude twe;
+ actual_backup_size = twe.Get_Folder_Size(part_settings.Backup_Folder);
+ } else
actual_backup_size = part_settings.file_bytes + part_settings.img_bytes;
actual_backup_size /= (1024LLU * 1024LLU);