Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
843d8b11
Commit
843d8b11
authored
Mar 16, 2018
by
deuce
Browse files
Better log messages when locks fail and aren't old enough to take over.
parent
f2467ce5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
exec/binkit.js
exec/binkit.js
+2
-2
No files found.
exec/binkit.js
View file @
843d8b11
...
...
@@ -63,7 +63,7 @@ function lock_flow(file)
// TODO: This is hacked for a signed 32-bit time_t... watch out in 2038!
orig_date
=
f
.
date
;
if
(
orig_date
>
(
now
-
60
*
60
*
6
))
{
log
(
LOG_
WARNING
,
format
(
"
%ld > %ld
"
,
orig_date
,
now
-
60
*
60
*
6
));
log
(
LOG_
INFO
,
format
(
"
Lock is too recent to override now (
%ld
)
>
six hours ago (
%ld
)
"
,
orig_date
,
now
-
60
*
60
*
6
));
return
false
;
}
remain
=
0x80000000
-
now
;
...
...
@@ -71,7 +71,7 @@ function lock_flow(file)
f
.
date
=
future
;
mswait
(
1000
);
if
(
f
.
date
!=
future
)
{
log
(
LOG_WARNING
,
format
(
"
%ld != future(%ld)
"
,
f
.
date
,
future
));
log
(
LOG_WARNING
,
format
(
"
Failed to set date in the future fdate (
%ld
)
!= future
(%ld)
"
,
f
.
date
,
future
));
return
false
;
}
if
(
!
f
.
open
(
"
wb
"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment