From c352714bf9cb0d30f776025416f04a4e21b488c0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 2 Feb 2022 11:13:58 -0500 Subject: [PATCH] add minimum size to process option --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 908ba5d..1e0d947 100644 --- a/main.go +++ b/main.go @@ -105,7 +105,7 @@ func doSingleImage(f string, c config, s stats) stats { fmt.Printf("Error reading file %s: %s\n", f, err.Error()) return s } - if st.Size() < int64(c.AtLeast) { + if st.Size() < int64(c.AtLeast)*1024 { s.StartingBytes += uint64(st.Size()) if !c.Quiet { fmt.Printf("Ignoring %s as %d bytes are below threashold", f, st.Size())