On Thu, Nov 25, 2010 at 1:23 AM, Zhouping Liu <zliu@...> wrote:
> I found it just support a small value for -I option.
> when I run '#./hugemmap04 -I 3600 -H /var/hugetlbfs',the test returned
> the -I option details :
> -I x Execute test for x seconds
> And if you give a much bigger value to -I option such as 3600 or larger, you
> will find the -I option disabled,
> so I changed the lib/parse_opts.c file, and just modified the stop_time
> variable type from 'int' to 'double',
> after changed, it can support a very bigger value for -I option.
Or maybe this should be time_t or long?
Honestly, this could potentially introduce a lot of headache if
done improperly in lib/parse_opts.c (especially if you use a double
precisioned time amount as this could seriously impact architectures