Changed size of the swapfile again.
authorChristian Schmidt <maniacikarus@ipfire.org>
Mon, 26 Apr 2010 16:34:17 +0000 (18:34 +0200)
committerChristian Schmidt <maniacikarus@ipfire.org>
Mon, 26 Apr 2010 16:34:17 +0000 (18:34 +0200)
src/install+setup/install/main.c

index c16bde8..4038f7c 100644 (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;