Use total seconds of TimeSpan for reset period

pull/50/head
Stephen Booher 2014-10-03 13:46:05 -06:00
parent 6080007e82
commit bb847a45f7
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ namespace winsw
public void ChangeConfig(TimeSpan failureResetPeriod, List<SC_ACTION> actions)
{
SERVICE_FAILURE_ACTIONS sfa = new SERVICE_FAILURE_ACTIONS();
sfa.dwResetPeriod = failureResetPeriod.Seconds;
sfa.dwResetPeriod = (int)failureResetPeriod.TotalSeconds;
sfa.lpRebootMsg = ""; // delete message
sfa.lpCommand = ""; // delete the command to run