Fixed syncWait to use Milliseconds.

This commit is contained in:
Eric Fontana
2014-12-22 06:29:42 -05:00
parent 0da192167a
commit 771aa791f1
6 changed files with 12 additions and 10 deletions

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.17.0")]
[assembly: AssemblyFileVersion("1.3.17.0")]
[assembly: AssemblyVersion("1.3.18.0")]
[assembly: AssemblyFileVersion("1.3.18.0")]

View File

@@ -165,7 +165,9 @@ namespace TimberWinR.Outputs
}
GC.Collect();
if (!Stop)
syncHandle.Wait(TimeSpan.FromSeconds(_interval), CancelToken);
{
syncHandle.Wait(TimeSpan.FromMilliseconds(_interval), CancelToken);
}
}
catch (OperationCanceledException oce)
{

View File

@@ -255,7 +255,7 @@ namespace TimberWinR.Outputs
}
GC.Collect();
if (!Stop)
syncHandle.Wait(TimeSpan.FromSeconds(_interval), CancelToken);
syncHandle.Wait(TimeSpan.FromMilliseconds(_interval), CancelToken);
}
catch (OperationCanceledException oce)
{

View File

@@ -76,7 +76,7 @@ namespace TimberWinR.Outputs
}
}
if (!Stop)
syncHandle.Wait(TimeSpan.FromSeconds(_interval), CancelToken);
syncHandle.Wait(TimeSpan.FromMilliseconds(_interval), CancelToken);
}
catch (OperationCanceledException oce)
{

View File

@@ -525,7 +525,7 @@ namespace TimberWinR.Parser
Timeout = 10000;
BatchCount = 10;
NumThreads = 1;
Interval = 5000;
Interval = 5;
QueueOverflowDiscardOldest = true;
MaxQueueSize = 50000;
}

View File

@@ -22,7 +22,7 @@
-->
<Property Id="REINSTALLMODE" Value="dmus" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate EmbedCab="yes" />