freelance-compute-dirsize-correctly-20011009

compute directory size properly
This commit is contained in:
Nickolai Zeldovich 2001-10-09 05:57:31 +00:00 committed by Derrick Brashear
parent bdc894b945
commit e4afa03500

View File

@ -90,7 +90,7 @@ void cm_InitFakeRootDir() {
(curDirEntryInPage + 1 >= CM_DIR_EPP)) {
curPage++;
curDirEntryInPage = 0;
curChunk = 0;
curChunk = 1;
}
curChunk += sizeOfCurEntry;
curDirEntry++;