Silly precision in a timing macros

Ethan Galstad nagios at nagios.org
Fri Oct 29 00:47:50 CEST 2004


Thanks - patch will be in CVS shortly.



On 26 Oct 2004 at 17:56, Andreas Ericsson wrote:

> The precision provided by timing macros (for latency and executin
> times) are a bit silly, since it holds room for 6 decimal points but
> only ever uses 3 of them (a limit in the Linux kernel, I've heard).
> 
> The attached patch takes care of that, and also fixes a couple of
> warnings (use of 'l' length character with 'f' type character) for
> those selfsame macros.
> 
> In the passing, it removes an unused variable (encoded_buffer) from
> process_macros, and fixes the above error message for a couple of
> debug printlines in config.c.
> 
> To apply only the precision part, remove the first files' 
> (base/config.c) hunks entirely and remove the first hunk from the
> second file (base/utils.c).
> 
> On a side-note, I'm really glad development seems to have taken a huge
> leap forward again.
> 
> -- 
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Lead Developer
> 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/




More information about the Developers mailing list