commit | 7d17af08a80c3d9a14a3fe11d70bd12d59641a7b | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@google.com> | Wed Oct 21 15:44:36 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Oct 21 15:44:36 2015 +0000 |
tree | f23b0801d16c82df1a76e608e8e264079cc2cad2 | |
parent | 0331d4ae3843f682e98bfa1aba0f8da7fbd9beb0 [diff] | |
parent | e76cf536a477bf8f605c77c59aca2b4331b002e9 [diff] |
Merge "Promote free bytes calculation to 64 bits"
diff --git a/Utils.cpp b/Utils.cpp index e19c9df..51ef4c4 100644 --- a/Utils.cpp +++ b/Utils.cpp
@@ -410,7 +410,7 @@ uint64_t GetFreeBytes(const std::string& path) { struct statvfs sb; if (statvfs(path.c_str(), &sb) == 0) { - return sb.f_bfree * sb.f_bsize; + return (uint64_t)sb.f_bfree * sb.f_bsize; } else { return -1; }