diff options
author | 2025-01-06 17:44:30 +0100 | |
---|---|---|
committer | 2025-01-06 17:44:30 +0100 | |
commit | 1b09adc72c81481bb5e9fad0ce866619ad2991c6 (patch) | |
tree | 460cd887a84b7f3c1222ee400733fa8874850a55 | |
parent | c8cdf20fe20b0c46ed7d9a9386bed03301ddbfa5 (diff) | |
download | libimobiledevice-1b09adc72c81481bb5e9fad0ce866619ad2991c6.tar.gz libimobiledevice-1b09adc72c81481bb5e9fad0ce866619ad2991c6.tar.bz2 |
tools/idevicebackup2: Fix free disk space calculation
-rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 804f9f4..1a767cd 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -2333,7 +2333,7 @@ checkpoint: memset(&fs, '\0', sizeof(fs)); res = statvfs(backup_directory, &fs); if (res == 0) { - freespace = (uint64_t)fs.f_bavail * (uint64_t)fs.f_bsize; + freespace = (uint64_t)fs.f_bavail * (uint64_t)fs.f_frsize; } #endif plist_t freespace_item = plist_new_uint(freespace); |