diff options
author | Kris Katterjohn <katterjohn@gmail.com> | 2019-01-03 17:24:26 -0600 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-01-16 14:40:15 -0500 |
commit | cbcf75d72852c457da4b1da544e7dac0ca859592 (patch) | |
tree | 9e4ca07dc8799cb25a6c52dada9fd00a342a5bb1 | |
parent | 0f3d88a159d32d477893b05a5a6051e9ccc9e716 (diff) | |
download | tor-cbcf75d72852c457da4b1da544e7dac0ca859592.tar.gz tor-cbcf75d72852c457da4b1da544e7dac0ca859592.zip |
Update and fix a couple of comments in meminfo.c
This fixes a typo and also notes that HW_PHYSMEM64 is defined on
NetBSD (not just OpenBSD).
Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
-rw-r--r-- | src/lib/meminfo/meminfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/meminfo/meminfo.c b/src/lib/meminfo/meminfo.c index 0f536323fa..f233188897 100644 --- a/src/lib/meminfo/meminfo.c +++ b/src/lib/meminfo/meminfo.c @@ -60,7 +60,7 @@ tor_log_mallinfo(int severity) ENABLE_GCC_WARNING(aggregate-return) #if defined(HW_PHYSMEM64) -/* This appears to be an OpenBSD thing */ +/* OpenBSD and NetBSD define this */ #define INT64_HW_MEM HW_PHYSMEM64 #elif defined(HW_MEMSIZE) /* OSX defines this one */ @@ -115,7 +115,7 @@ get_total_system_memory_impl(void) return ms.ullTotalPhys; #elif defined(HAVE_SYSCTL) && defined(INT64_HW_MEM) - /* On many systems, HW_PYHSMEM is clipped to 32 bits; let's use a better + /* On many systems, HW_PHYSMEM is clipped to 32 bits; let's use a better * variant if we know about it. */ uint64_t memsize = 0; size_t len = sizeof(memsize); |