mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-05 03:18:00 +02:00
Changed size of the swapfile again.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user