--- 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");