mem2swap.c
changeset 51 a03372ef9714
parent 48 b94d657a9acb
child 63 5a82f89d607e
--- a/mem2swap.c
+++ b/mem2swap.c
@@ -28,15 +28,15 @@
     char *args[] = { "/usr/bin/free", "-m", NULL };
 
     int size = sizeof (*p);
-    int megs = DEFAULT_MEGS * 1024 * 1024;
+    int megs = DEFAULT_MEGS;
 
     if (argc == 2)
-        megs = atoi (argv[1]) * 1024 * 1024;
+        megs = atoi (argv[1]);
 
     printf ("Mem2Swap - Version 1.0\n");
 
     if (!set_limit (megs))
-        printf ("%d MB demanded ", megs / 1024 / 1024);
+        printf ("%d MB demanded ", megs);
     else {
         printf ("\tUsage: %s [MEM]\n\n", argv[0]);
         printf ("Report bugs to mbroeker@largo.homelinux.org\n");