Expose freebytes too
This commit is contained in:
1 parent
eb4a0e3a7c
commit
fd685a5e14
2 files changed
+3
No files matched your search
@@ -81,6 +81,8 @@ uint64_t HalStorage::sdUsedBytes() const {
|
||||
return (clusterCount - cappedFreeClusters) * bytesPerCluster;
|
||||
}
|
||||
|
||||
uint64_t HalStorage::sdFreeBytes() const { return sdTotalBytes() - sdUsedBytes(); }
|
||||
|
||||
class HalFile::Impl {
|
||||
public:
|
||||
Impl(FsFile&& fsFile) : file(std::move(fsFile)) {}
|
||||
|
||||
@@ -47,6 +47,7 @@ class HalStorage {
|
||||
|
||||
uint64_t sdTotalBytes() const;
|
||||
uint64_t sdUsedBytes() const;
|
||||
uint64_t sdFreeBytes() const;
|
||||
|
||||
static HalStorage& getInstance() { return instance; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user