[collectd] [PATCH] src/memory.c: libstatgrab's variable is "cache", not "cached"

Sebastian Harl sh at tokkee.org
Sun Aug 10 10:56:22 CEST 2008


Hi Michael,

On Sat, Aug 09, 2008 at 02:46:57PM +0200, Michael Stapelberg wrote:
> At least in libstatgrab 0.16, the variable cached doesn't exist, it's cache.
> Patch attached.

The same applies for 0.13.

> From e208be1218976cfc48480b4e7f918fdc226ba93b Mon Sep 17 00:00:00 2001
> From: Michael Stapelberg <michael+git at stapelberg.de>
> Date: Sat, 9 Aug 2008 14:42:24 +0200
> Subject: [PATCH] The variable is named cache, not cached, at least on libstatgrab >= 0.16

This seems to be a typo introduced by f3ba9d619b0b7db3a44624c8ad639fa81ab583e1.

Signed-off-by: Sebastian Harl <sh at tokkee.org>

> ---
>  src/memory.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/memory.c b/src/memory.c
> index c1564c8..c31b30e 100644
> --- a/src/memory.c
> +++ b/src/memory.c
> @@ -319,7 +319,7 @@ static int memory_read (void)
>  	if ((ios = sg_get_mem_stats ()) != NULL)
>  	{
>  		memory_submit ("used",   ios->used);
> -		memory_submit ("cached", ios->cached);
> +		memory_submit ("cached", ios->cache);
>  		memory_submit ("free",   ios->free);
>  	}
>  #endif /* HAVE_LIBSTATGRAB */
> -- 
> 1.5.2.4

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- 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/20080810/c0fc55e2/attachment.pgp 


More information about the collectd mailing list