This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cpuload.cxx patch


On Mon, Jul 31, 2006 at 03:03:11PM +0200, Gerster Jochen-B01096 wrote:
> Hi
>  
> here is the patch file for the cpuload.cxx so the average is no calc correctly (I hope)
> changes:
> - the reason was a bracket which wasn't set correct 
> improved:
> - minimizes rounding errors
>  
>  
> So anyone can have a look at it and validate it!
>  
> Attached the patch file :)
>  
> Thanks to Jonathan Larmour for his support in using the diff tool!
>  
>  
> Jochen

Hi Jochen

I've at last got around to testing this patch. It works as advertised.

However the change to the averaging algorithm changes how fast the 1s
and 10s averages change. There is no real definition of what these two
figures mean, so the old version is just as correct as your version.

I'm not sure it is a good idea to change them, since users may have
become used to these meaningless figures meaning.

What is they advantage of your average algorithm?

       Andrew


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]