diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c index 77be94d73d1..a8ad44491fa 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -6875,8 +6875,9 @@ gc_sweep (void) | |||
| 6875 | 6875 | ||
| 6876 | DEFUN ("memory-info", Fmemory_info, Smemory_info, 0, 0, 0, | 6876 | DEFUN ("memory-info", Fmemory_info, Smemory_info, 0, 0, 0, |
| 6877 | doc: /* Return a list of (TOTAL-RAM FREE-RAM TOTAL-SWAP FREE-SWAP). | 6877 | doc: /* Return a list of (TOTAL-RAM FREE-RAM TOTAL-SWAP FREE-SWAP). |
| 6878 | All values are in Kbytes. If there is no swap space, last two | 6878 | All values are in Kbytes. If there is no swap space, |
| 6879 | values are zero. If the system is not supported, return nil. */) | 6879 | last two values are zero. If the system is not supported |
| 6880 | or memory information can't be obtained, return nil. */) | ||
| 6880 | (void) | 6881 | (void) |
| 6881 | { | 6882 | { |
| 6882 | #if defined HAVE_LINUX_SYSINFO | 6883 | #if defined HAVE_LINUX_SYSINFO |
| @@ -6884,7 +6885,7 @@ values are zero. If the system is not supported, return nil. */) | |||
| 6884 | uintmax_t units; | 6885 | uintmax_t units; |
| 6885 | 6886 | ||
| 6886 | if (sysinfo (&si)) | 6887 | if (sysinfo (&si)) |
| 6887 | emacs_abort (); | 6888 | return Qnil; |
| 6888 | #ifdef LINUX_SYSINFO_UNIT | 6889 | #ifdef LINUX_SYSINFO_UNIT |
| 6889 | units = si.mem_unit; | 6890 | units = si.mem_unit; |
| 6890 | #else | 6891 | #else |