Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
2672e7a7
Commit
2672e7a7
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Wait some grace period between two subsequent transfers.
Closes
#9
parent
4845e053
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ATxService/AutoTx.cs
+9
-0
9 additions, 0 deletions
ATxService/AutoTx.cs
ATxService/RoboCommand.cs
+1
-0
1 addition, 0 deletions
ATxService/RoboCommand.cs
with
10 additions
and
0 deletions
ATxService/AutoTx.cs
+
9
−
0
View file @
2672e7a7
...
...
@@ -32,6 +32,7 @@ namespace ATxService
private
RoboCommand
_roboCommand
;
private
long
_txCurFileSize
;
private
int
_txCurFileProgress
;
private
int
_waitCyclesBeforeNextTx
;
private
DateTime
_lastUserDirCheck
=
DateTime
.
MinValue
;
...
...
@@ -579,6 +580,14 @@ namespace ATxService
return
;
}
// give the system some time before starting the next transfer:
if
(
_waitCyclesBeforeNextTx
>
0
)
{
Log
.
Debug
(
"Waiting {0} more cycles before starting the next transfer..."
,
_waitCyclesBeforeNextTx
);
_waitCyclesBeforeNextTx
--;
return
;
}
// dispatch the next directory from "processing" for transfer:
try
{
StartTransfer
(
subdirs
[
0
].
FullName
);
...
...
This diff is collapsed.
Click to expand it.
ATxService/RoboCommand.cs
+
1
−
0
View file @
2672e7a7
...
...
@@ -164,6 +164,7 @@ namespace ATxService
_txCurFileProgress
=
0
;
_roboCommand
.
Dispose
();
_status
.
TransferInProgress
=
false
;
_waitCyclesBeforeNextTx
=
2
;
}
/// <summary>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment