From 9a6354316b9cde662f3c65b90e14c970c3e864ea Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 17 Dec 2014 17:15:37 +0100 Subject: Add info as requested by the original getMemorySize() license. --- src/zmalloc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/zmalloc.c') diff --git a/src/zmalloc.c b/src/zmalloc.c index fe4a0a185..640ee19e2 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -368,7 +368,15 @@ size_t zmalloc_get_private_dirty(void) { /* Returns the size of physical memory (RAM) in bytes. * It looks ugly, but this is the cleanest way to achive cross platform results. * Cleaned up from: + * * http://nadeausoftware.com/articles/2012/09/c_c_tip_how_get_physical_memory_size_system + * + * Note that this function: + * 1) Was released under the following CC attribution license: + * http://creativecommons.org/licenses/by/3.0/deed.en_US. + * 2) Was originally implemented by David Robert Nadeau. + * 3) Was modified for Redis by Matt Stancliff. + * 4) This note exists in order to comply with the original license. */ size_t zmalloc_get_memory_size(void) { #if defined(__unix__) || defined(__unix) || defined(unix) || \ -- cgit v1.2.1