Re: [Nautilus-list] Tiny patch



On Tue, 2002-04-09 at 10:52, Soeren Sonnenburg wrote:
> On Mon, 2002-04-08 at 17:12, Glen Gray wrote:
> > Here is a small patch to 
> > 
> > 1) Change the hackish reporting of RAM size in Hardware View to a
> > different hackish  formula that reports the RAM size more accurately
> > with more RAM sizes than whats there. But it's still not correct.
> 
> It is still wrong, why did you ignore my previous post ?
> 

I didn't ignore it. It still gives the same figure as the current
formula that nautilus uses
Here is my bc session to prove

[root cruachann proc]# ll kcore
-r--------    1 root     root     401571840 Apr  9 11:06 kcore

[glen cruachann ram_size]$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 
((((401571840 - 4096) + 1023)/1024) + 1023) / 1024
383

Thats a lot of wasted computation to come up with the same wrong number.
The hack of the existing formula isn't "correct" but does report ram
size better than whats there at the moment.


-- 
_______________________________________
Glen Gray             Software Engineer
a n t e f a c t o     t: +353 1 8586006
www.antefacto.com     f: +353 1 8586014
181 Parnell Street - Dublin 1 - Ireland





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]