Subject: Re: bin/19381: netstat shows negative percentage
To: David Laight <david@l8s.co.uk>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 12/14/2002 12:17:13
On Sat, Dec 14, 2002 at 10:59:44AM +0000, David Laight wrote:

> +       totpct = (totmem < 100) ? 0 : totused/(totmem/100));
> to avoid nasty FP arithmetic.

I keep forgetting what the consensus was on the final C 99 standard: does
this force evaluation order? ISTR only assigning to temporaries did the
trick, while this allows the optimizer to rearange things.

Martin