fix bug in calc retry interval
Merge pull request #15 from eleme/retry_interval

fix bug in calc retry interval