diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-20 12:09:13 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-20 12:51:38 +0200 |
| commit | 98ffb2ff73ed532884dad86e9210f6cee4ab1e8a (patch) | |
| tree | 7cdff5df18328081004537d410ff70f654740796 | |
| parent | 7a5865bf74c39dd80fdfa68444e800d9afea4182 (diff) | |
| download | allocbench-98ffb2ff73ed532884dad86e9210f6cee4ab1e8a.tar.gz allocbench-98ffb2ff73ed532884dad86e9210f6cee4ab1e8a.zip | |
[make] don't use free to obtain total memory just read /proc/meminfo
| -rw-r--r-- | allocbench/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/allocbench/Makefile b/allocbench/Makefile index caceb19..4d67fbf 100644 --- a/allocbench/Makefile +++ b/allocbench/Makefile @@ -10,7 +10,7 @@ CFLAGS ?= $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS) LDFLAGS ?= -pthread -static-libgcc -MEMSIZE_KB=$(shell free -t | tail -1 | tr -s ' ' | cut -d ' ' -f 2) +MEMSIZE_KB=$(shell grep -E "MemTotal|SwapTotal" /proc/meminfo | grep -o "[0-9]*" | paste -sd+ | bc) MEMSIZE="$(MEMSIZE_KB) * 1024l" TOOLS = print_status_on_exit.so exec sig_handlers.so |
