Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
24a56af4
Commit
24a56af4
authored
Aug 09, 2010
by
amnesia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
htpdate: don't use any maximum time step.
parent
4a85e33f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
config/chroot_local-includes/usr/local/sbin/htpdate
config/chroot_local-includes/usr/local/sbin/htpdate
+2
-2
No files found.
config/chroot_local-includes/usr/local/sbin/htpdate
View file @
24a56af4
...
...
@@ -43,7 +43,7 @@ my $dateparam = '-s'; # "date" parameter to set time
my
$debug
=
0
;
my
$fullrequest
=
0
;
my
$log
=
'';
my
$maxadjust
=
1800
;
# maximum time step in seconds
my
$maxadjust
=
0
;
# maximum time step in seconds
(0 means no max.)
my
$minadjust
=
1
;
# minimum time step in seconds
my
$paranoid
=
0
;
my
$password
=
'';
# password for proxy server
...
...
@@ -215,7 +215,7 @@ sub adjustDate {
debug
("
Median diff:
$diff
second(s)
");
if
(
DateTime::
Duration
->
compare
(
$absdiffdt
,
if
(
$maxadjust
&&
DateTime::
Duration
->
compare
(
$absdiffdt
,
DateTime::
Duration
->
new
(
seconds
=>
$maxadjust
),
$localdt
)
>
0
)
{
...
...
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