[ltp] Running without a battery?

mukesh agrawal linux-thinkpad@linux-thinkpad.org
Wed, 14 Jan 2004 10:16:48 -0500 (EST)


(I wrote)
> > main() {
> > 	int i = 1E6;
> >
> > 	while (i) --i;
> > }

(Behdad wrote)

> Not a single loop works still ;).  On my P4 2.4, 1E9 takes 0.7s
> and 1E10 apparently overflows 32bit int.

Oops. Replacing int with long long should fix that.