From 69dd863b6c6c734c42a79217d5b053eaad16ea51 Mon Sep 17 00:00:00 2001 From: Darko Luketic Date: Fri, 1 Nov 2019 17:32:59 +0100 Subject: [PATCH] maxmem is in MB not byte --- cmd/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/serve.go b/cmd/serve.go index fb07ffb..2d131df 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -64,5 +64,5 @@ func init() { serveCmd.Flags().StringVarP(&binary, "binary", "b", "/usr/bin/google-chrome", "chrome, chromium or headless binary path") serveCmd.Flags().DurationVarP(&duration, "duration", "d", 60*time.Minute, "how long the values live in the cache") - serveCmd.Flags().IntVarP(&maxmem, "maxmem", "m", 500*1024*1024, "maximum memory the cache may use in bytes") + serveCmd.Flags().IntVarP(&maxmem, "maxmem", "m", 512, "maximum memory in MB the cache may use") }