Subject: Re: bin/19381: netstat shows negative percentage
To: David Laight <email@example.com>
From: Martin Husemann <firstname.lastname@example.org>
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.