On Tue, 17 Feb 2015 15:08:38 +0100 Sebastian Andrzej Siewior
<[email protected]> wrote:
> * Boris Egorov | 2014-11-27 16:20:34 [+0600]:
> 
> >Program will crash if nr_runs is 0 due to dividing by it in
> >print_results(). Let's exit early instead.
> >
> >Fixes: http://bugs.debian.org/716237
> 
> Has this been dealt with? I can't see this applied. I would prefer
> doing the value check in parse_options() itself. And looking at it, it
> seems that run_interval is interval ignored. Or is there macro magic
> invovled?
> 

It looks to me like interval is being ignored in favor of INTERVAL,
which is a macro defined as:

#define INTERVAL ms2nano(100ULL)

I think the fix is to change the lines that initialize intv in main()
to use interval rather than INTERVAL. 

Clark

Attachment: pgpgyjgZ5EtJp.pgp
Description: OpenPGP digital signature

Reply via email to