add minimum size to process option
This commit is contained in:
parent
91ca030474
commit
c352714bf9
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())
|
fmt.Printf("Error reading file %s: %s\n", f, err.Error())
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
if st.Size() < int64(c.AtLeast) {
|
if st.Size() < int64(c.AtLeast)*1024 {
|
||||||
s.StartingBytes += uint64(st.Size())
|
s.StartingBytes += uint64(st.Size())
|
||||||
if !c.Quiet {
|
if !c.Quiet {
|
||||||
fmt.Printf("Ignoring %s as %d bytes are below threashold", f, st.Size())
|
fmt.Printf("Ignoring %s as %d bytes are below threashold", f, st.Size())
|
||||||
|
|
Loading…
Reference in New Issue