fix that interval sleep was not effectively working
Merge pull request #34 from yohoushi/fix_interval_sleep

fix that interval sleep was not effectively working