Changed size of the swapfile again.

This commit is contained in:
Christian Schmidt
2010-04-26 18:34:17 +02:00
parent 823c2183c2
commit 6380cbd123

View File

@@ -302,9 +302,9 @@ int main(int argc, char *argv[])
fprintf(flog, "Disksize = %ld, memory = %ld", disk, memory);
/* Calculating Swap-Size dependend of Ram Size */
if (memory < 128)
swap_file = 32;
else if (memory > 512)
if (memory =< 256)
swap_file = 128;
else if (memory =< 1024 && memory > 256)
swap_file = 256;
else
swap_file = memory / 4;