deb: add threshold ratio environment variable