Updated check-time and threshold time
Code smell fix