summaryrefslogtreecommitdiff
path: root/src/zmalloc.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-12-17 17:15:37 +0100
committerantirez <antirez@gmail.com>2014-12-17 17:15:39 +0100
commit9a6354316b9cde662f3c65b90e14c970c3e864ea (patch)
tree747338b6ce9c27153d83ccc42680a275d975b997 /src/zmalloc.c
parent615f6923d5fde35478c82845c564eeaa38174676 (diff)
downloadredis-9a6354316b9cde662f3c65b90e14c970c3e864ea.tar.gz
Add info as requested by the original getMemorySize() license.
Diffstat (limited to 'src/zmalloc.c')
-rw-r--r--src/zmalloc.c8
1 files changed, 8 insertions, 0 deletions
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) || \