add minimum size to process option

This commit is contained in:
Your Name 2022-02-02 11:13:58 -05:00
parent 91ca030474
commit c352714bf9
1 changed files with 1 additions and 1 deletions

View File

@ -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())