MCPcopy Create free account
hub / github.com/Gregwar/fatcat / computeStats

Method computeStats

src/core/FatSystem.cpp:853–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853void FatSystem::computeStats()
854{
855 if (statsComputed) {
856 return;
857 }
858
859 statsComputed = true;
860
861 freeClusters = 0;
862 for (unsigned int cluster=0; cluster<totalClusters; cluster++) {
863 if (freeCluster(cluster)) {
864 freeClusters++;
865 }
866 }
867}
868
869void FatSystem::rewriteUnallocated(bool random)
870{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected