forked from KolibriOS/kolibrios
fix prior
git-svn-id: svn://kolibrios.org@9694 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
684ee81f3e
commit
28bfa13e88
@ -145,12 +145,12 @@ signed CheckFreeSpace(dword _latest, _combined)
|
||||
DIR_SIZE dir_size;
|
||||
|
||||
dir_size.get("/sys");
|
||||
cur_size = dir_size.bytes;
|
||||
cur_size = dir_size.sizelo;
|
||||
|
||||
copyf("/sys", _combined);
|
||||
copyf(_latest, _combined);
|
||||
dir_size.get(_combined);
|
||||
new_size = dir_size.bytes;
|
||||
new_size = dir_size.sizelo;
|
||||
|
||||
empty = GetFreeSpaceOfRamdisk();
|
||||
|
||||
|
@ -310,9 +310,9 @@ dword GetTmpDiskFreeSpace(int _id)
|
||||
DIR_SIZE dir_size;
|
||||
sprintf(#param, "/tmp%i/1", _id);
|
||||
dir_size.get(#param);
|
||||
dir_size.bytes += dir_size.files/2 + 32 * 512; //file attr size + FAT table size
|
||||
dir_size.bytes /= 1024*1024; //convert to MiB
|
||||
return dir_size.bytes;
|
||||
dir_size.sizelo += dir_size.files/2 + 32 * 512; //file attr size + FAT table size
|
||||
dir_size.sizelo /= 1024*1024; //convert to MiB
|
||||
return dir_size.sizelo;
|
||||
}
|
||||
|
||||
void MonitorTmp()
|
||||
|
Loading…
Reference in New Issue
Block a user