fix prior

git-svn-id: svn://kolibrios.org@9694 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2022-02-06 23:22:57 +00:00
parent 684ee81f3e
commit 28bfa13e88
2 changed files with 5 additions and 5 deletions

View File

@ -145,12 +145,12 @@ signed CheckFreeSpace(dword _latest, _combined)
DIR_SIZE dir_size; DIR_SIZE dir_size;
dir_size.get("/sys"); dir_size.get("/sys");
cur_size = dir_size.bytes; cur_size = dir_size.sizelo;
copyf("/sys", _combined); copyf("/sys", _combined);
copyf(_latest, _combined); copyf(_latest, _combined);
dir_size.get(_combined); dir_size.get(_combined);
new_size = dir_size.bytes; new_size = dir_size.sizelo;
empty = GetFreeSpaceOfRamdisk(); empty = GetFreeSpaceOfRamdisk();

View File

@ -310,9 +310,9 @@ dword GetTmpDiskFreeSpace(int _id)
DIR_SIZE dir_size; DIR_SIZE dir_size;
sprintf(#param, "/tmp%i/1", _id); sprintf(#param, "/tmp%i/1", _id);
dir_size.get(#param); dir_size.get(#param);
dir_size.bytes += dir_size.files/2 + 32 * 512; //file attr size + FAT table size dir_size.sizelo += dir_size.files/2 + 32 * 512; //file attr size + FAT table size
dir_size.bytes /= 1024*1024; //convert to MiB dir_size.sizelo /= 1024*1024; //convert to MiB
return dir_size.bytes; return dir_size.sizelo;
} }
void MonitorTmp() void MonitorTmp()