Mercurial > octave
diff scripts/miscellaneous/memory.m @ 28921:967cfcde2e35
maint: Use parentheses around conditional expressions.
* memory.m, tar_is_bsd.m, runge_kutta_23s.m,
load_packages_and_dependencies.m, unload_packages.m, camlookat.m, camorbit.m,
__unite_shared_vertices__.m, streamribbon.m, struct2hdl.m, __alltohandles__.m,
webwrite.m:
Use parentheses around conditional expressions
author | Rik <rik@octave.org> |
---|---|
date | Tue, 13 Oct 2020 23:26:17 -0700 |
parents | 7a2d9bd500cb |
children | 7854d5752dd2 |
line wrap: on
line diff
--- a/scripts/miscellaneous/memory.m Tue Oct 13 23:19:09 2020 -0700 +++ b/scripts/miscellaneous/memory.m Tue Oct 13 23:26:17 2020 -0700 @@ -160,7 +160,7 @@ total_ram = meminfo.MemTotal * kiB; total_swap = meminfo.SwapTotal * kiB; free_ram = meminfo.MemFree * kiB; - if isfield (meminfo, "MemAvailable") + if (isfield (meminfo, "MemAvailable")) available_ram = meminfo.MemAvailable * kiB; else ## On kernels from before 2014 MemAvailable is not present.