diff options
| -rw-r--r-- | allocbench/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/allocbench/Makefile b/allocbench/Makefile index 4d67fbf..3d6c94b 100644 --- a/allocbench/Makefile +++ b/allocbench/Makefile @@ -10,7 +10,8 @@ CFLAGS ?= $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS) LDFLAGS ?= -pthread -static-libgcc -MEMSIZE_KB=$(shell grep -E "MemTotal|SwapTotal" /proc/meminfo | grep -o "[0-9]*" | paste -sd+ | bc) +MEMSIZE_KB=$(shell grep -E "MemTotal|SwapTotal" /proc/meminfo | grep -o "[0-9]*"\ + | python -c "import sys; print(sum([int(x) for x in sys.stdin.readlines()]))") MEMSIZE="$(MEMSIZE_KB) * 1024l" TOOLS = print_status_on_exit.so exec sig_handlers.so |
