Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74f5e0e0 authored by Tao Bao's avatar Tao Bao Committed by Gerrit Code Review
Browse files

Merge "Use f_bavail to calculate free space"

parents aa4df5c4 3b497763
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -662,7 +662,7 @@ size_t FreeSpaceForFile(const char* filename) {
        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) {