add minimum size to process option
This commit is contained in:
2
main.go
2
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())
|
||||
|
Reference in New Issue
Block a user