Make the SYSINFO documentation reflect which options were compiled in
authorRussell Bryant <russell@russellbryant.com>
Mon, 19 Nov 2007 23:03:02 +0000 (23:03 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 19 Nov 2007 23:03:02 +0000 (23:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89439 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_sysinfo.c

index d656b0c..b386b9f 100644 (file)
@@ -91,6 +91,7 @@ static struct ast_custom_function sysinfo_function = {
 "  Options:\n"
 "    loadavg   - system load average from past minute\n"
 "    numcalls  - number of active calls currently in progress\n"
+#if defined(HAVE_SYSINFO)
 "    uptime    - system uptime in hours\n"
 "    totalram  - total usable main memory size in KiB\n"
 "    freeram   - available memory size in KiB\n"
@@ -98,6 +99,7 @@ static struct ast_custom_function sysinfo_function = {
 "    totalswap - total swap space size in KiB\n"
 "    freeswap  - free swap space still available in KiB\n"
 "    numprocs  - number of current processes\n",
+#endif /* HAVE_SYSINFO */
 };
 
 static int unload_module(void)