[collectd] swap.c fix for 3.9.0
    Sebastian Harl 
    sh at tokkee.org
       
    Wed Apr 19 19:35:11 CEST 2006
    
    
  
> Silly bug.
> -	if (snprintf (buffer, 512, "N:%llu:%llu:%llu:%llu", swap_used,
> -				swap_free, swap_cached, swap_resv) >= 512)
> +	if (snprintf (buffer, 512, "%u:%llu:%llu:%llu:%llu", 
> +                      (unsigned int) curtime, swap_used,
> +                      swap_free, swap_cached, swap_resv) >= 512)
I really can't find any bug.
See rrdupdate(1):
       N|timestamp:value[:value...]
               The data used for updating the RRD was acquired at a certain
               time. This time can either be defined in seconds since
               1970-01-01 or by using the letter 'N', in which case the update
               time is set to be the current time.
;-)
Cheers,
Sebastian
-- 
Sebastian "tokkee" Harl
GnuPG-ID: 0x8501C7FC
http://tokkee.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20060419/ff82d40c/attachment.pgp
    
    
More information about the collectd
mailing list