We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 437eb79 commit 59a5611Copy full SHA for 59a5611
libraries/SDFS/src/SDFS.h
@@ -101,7 +101,7 @@ class SDFSImpl : public FSImpl
101
info.pageSize = 0; // TODO ?
102
info.maxPathLength = 255; // TODO ?
103
info.totalBytes =_fs.vol()->clusterCount() * info.blockSize;
104
- info.usedBytes = info.totalBytes - (_fs.vol()->freeClusterCount() * _fs.vol()->bytesPerCluster());
+ info.usedBytes = (_fs.vol()->clusterCount() - _fs.vol()->freeClusterCount()) * info.blockSize;
105
return true;
106
}
107
0 commit comments