Ignore:
Timestamp:
01/19/10 13:44:23 (3 years ago)
Author:
sam
Message:

Fix memory limitation method on OS X (page size was ignored) and other
systems (was using MBs instead of MiBs?).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/myfork.c

    r4257 r4282  
    179179    { 
    180180        struct rlimit rlim; 
    181         rlim.rlim_cur = opts->maxmem * 1000000; 
    182         rlim.rlim_max = opts->maxmem * 1000000; 
     181        rlim.rlim_cur = opts->maxmem * 1048576; 
     182        rlim.rlim_max = opts->maxmem * 1048576; 
    183183        setrlimit(ZZUF_RLIMIT_MEM, &rlim); 
    184184    } 
Note: See TracChangeset for help on using the changeset viewer.