diff options
author | Jim Posen <jim.posen@gmail.com> | 2019-01-24 11:20:57 -0800 |
---|---|---|
committer | Jim Posen <jim.posen@gmail.com> | 2019-02-22 17:38:45 -0800 |
commit | 04cca330944f859b4ed68cb8da8a79f5206fd630 (patch) | |
tree | a0c42f2d1b123a0c73e3bf3943cbdb18393e441d /src/util/system.cpp | |
parent | 4c01e4e159db82ce4b2acce75f709cac996367d7 (diff) |
Style cleanup.
Diffstat (limited to 'src/util/system.cpp')
-rw-r--r-- | src/util/system.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index 3e6c2ae5d4..1f0a097e3d 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -135,12 +135,12 @@ bool DirIsWritable(const fs::path& directory) return true; } -bool CheckDiskSpace(const fs::path& dir, uint64_t nAdditionalBytes) +bool CheckDiskSpace(const fs::path& dir, uint64_t additional_bytes) { - constexpr uint64_t nMinDiskSpace = 52428800; // 50 MiB + constexpr uint64_t min_disk_space = 52428800; // 50 MiB - uint64_t nFreeBytesAvailable = fs::space(dir).available; - return nFreeBytesAvailable >= nMinDiskSpace + nAdditionalBytes; + uint64_t free_bytes_available = fs::space(dir).available; + return free_bytes_available >= min_disk_space + additional_bytes; } /** |