On Mon, Apr 21, 2008 at 06:03:17PM -0400, [EMAIL PROTECTED] wrote:
> I changed the value_threshold for load_one to 0.01, and was suprised it
> was not updated more frequently.  Upon examining the code, I found this:
> 
> >>    case GANGLIA_VALUE_FLOAT:
> >>              if( abs( cb->last.f - cb->now.f ) >= cb->value_threshold )
> >>        group->next_send = 0; /* send immediately */
> >>    break;
> >>    case GANGLIA_VALUE_DOUBLE:
> >>              if( abs( cb->last.d - cb->now.d ) >= cb->value_threshold )
> >>        group->next_send = 0; /* send immediately */
> >>    break;
> 
> Shouldn't those calls be to fabs?

fabsf and fabs indeed.  Thanks

Committed revision 1275

Carlo

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to