1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## memory_libstatgrab.dpatch by Michael Stapelberg <michael+git@stapelberg.de>
3 ##
4 ## DP: Fix a typo in the libstatgrab code of the memory plugin. This is
5 ## DP: relevant for e.g. GNU/kfreebsd.
6 ## DP: (This is upstream Git commit 59f405559485a04c30b88c2f68fa9e112bdab6a6)
8 @DPATCH@
10 diff a/src/memory.c b/src/memory.c
11 --- a/src/memory.c
12 +++ b/src/memory.c
13 @@ -319,7 +319,7 @@ static int memory_read (void)
14 if ((ios = sg_get_mem_stats ()) != NULL)
15 {
16 memory_submit ("used", ios->used);
17 - memory_submit ("cached", ios->cached);
18 + memory_submit ("cached", ios->cache);
19 memory_submit ("free", ios->free);
20 }
21 #endif /* HAVE_LIBSTATGRAB */