commit | 74f5e0e09e16ba38d007fdc4aeede20129c817bc | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Fri May 29 06:21:06 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri May 29 06:21:07 2015 +0000 |
tree | 5f06eed3b6012bf5cf38acee7e94f2f489c209c7 | |
parent | aa4df5c45b99438282db3a94cb7682c480e0eccd [diff] | |
parent | 3b4977638f48e59d23d7ea2bb6dde78552c257fb [diff] |
Merge "Use f_bavail to calculate free space"
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c index 6f02a38..2358d42 100644 --- a/applypatch/applypatch.c +++ b/applypatch/applypatch.c
@@ -662,7 +662,7 @@ printf("failed to statfs %s: %s\n", filename, strerror(errno)); return -1; } - return sf.f_bsize * sf.f_bfree; + return sf.f_bsize * sf.f_bavail; } int CacheSizeCheck(size_t bytes) {