set_limit.c
changeset 51 a03372ef9714
parent 9 c3fecc82ade6
child 60 47c13ca8c4d0
--- a/set_limit.c
+++ b/set_limit.c
@@ -10,6 +10,8 @@
 {
     struct rlimit rlim;
 
+    megs *= 1024 * 1024;
+
     rlim.rlim_cur = megs;
     rlim.rlim_max = 1.25 * megs;
     if (megs > (4 * 1024 * 1024))