Use total seconds of TimeSpan for reset period
Merge pull request #50 from eel/fix-failure-reset-period

Use total seconds of TimeSpan for reset period