Skip to content
Snippets Groups Projects
Commit 17d71efd authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Make ServiceTimer optional.

Refers to #29
parent 4fe9cd31
Branches
Tags
No related merge requests found
...@@ -57,11 +57,6 @@ namespace ATxCommon.Serializables ...@@ -57,11 +57,6 @@ namespace ATxCommon.Serializables
/// </summary> /// </summary>
public string TmpTransferDir { get; set; } public string TmpTransferDir { get; set; }
/// <summary>
/// The interval (in ms) for checking for new files and system parameters.
/// </summary>
public int ServiceTimer { get; set; }
/// <summary> /// <summary>
/// Maximum allowed CPU usage across all cores in percent. Running transfers will be paused /// Maximum allowed CPU usage across all cores in percent. Running transfers will be paused
/// if this limit is exceeded. /// if this limit is exceeded.
...@@ -83,6 +78,11 @@ namespace ATxCommon.Serializables ...@@ -83,6 +78,11 @@ namespace ATxCommon.Serializables
/// </summary> /// </summary>
public bool Debug { get; set; } = false; public bool Debug { get; set; } = false;
/// <summary>
/// The interval (in ms) for checking for new files and system parameters. Default: 1000.
/// </summary>
public int ServiceTimer { get; set; } = 1000;
/// <summary> /// <summary>
/// The name of a marker file to be placed in all **sub**directories /// The name of a marker file to be placed in all **sub**directories
/// inside the IncomingDirectory. /// inside the IncomingDirectory.
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
to be used for running transfers --> to be used for running transfers -->
<TmpTransferDir>d-vamp-dw</TmpTransferDir> <TmpTransferDir>d-vamp-dw</TmpTransferDir>
<!-- ServiceTimer: interval (in ms) for checking files and parameters -->
<ServiceTimer>1000</ServiceTimer>
<!-- MaxCpuUsage: pause transfer if CPU usage is above this value (in %)--> <!-- MaxCpuUsage: pause transfer if CPU usage is above this value (in %)-->
<MaxCpuUsage>25</MaxCpuUsage> <MaxCpuUsage>25</MaxCpuUsage>
...@@ -36,6 +33,9 @@ ...@@ -36,6 +33,9 @@
<!-- Debug: enable or disable debug log messages --> <!-- Debug: enable or disable debug log messages -->
<Debug>true</Debug> <Debug>true</Debug>
<!-- ServiceTimer: interval (in ms) for checking files and parameters -->
<ServiceTimer>1000</ServiceTimer>
<!-- MarkerFile: a file to place in each user's incoming directory, the <!-- MarkerFile: a file to place in each user's incoming directory, the
file itself will be ignored for the transfers --> file itself will be ignored for the transfers -->
<MarkerFile>_DO_NOT_ACQUIRE_HERE_.txt</MarkerFile> <MarkerFile>_DO_NOT_ACQUIRE_HERE_.txt</MarkerFile>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment