Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
59dd568f
Commit
59dd568f
authored
Dec 08, 2011
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Record the time of the last full update in interface structure.
parent
c258306b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
interface.h
interface.h
+1
-0
message.c
message.c
+1
-0
No files found.
interface.h
View file @
59dd568f
...
@@ -86,6 +86,7 @@ struct interface {
...
@@ -86,6 +86,7 @@ struct interface {
time_t
bucket_time
;
time_t
bucket_time
;
unsigned
int
bucket
;
unsigned
int
bucket
;
time_t
activity_time
;
time_t
activity_time
;
time_t
last_update_time
;
unsigned
short
hello_seqno
;
unsigned
short
hello_seqno
;
unsigned
hello_interval
;
unsigned
hello_interval
;
unsigned
update_interval
;
unsigned
update_interval
;
...
...
message.c
View file @
59dd568f
...
@@ -1132,6 +1132,7 @@ send_update(struct interface *ifp, int urgent,
...
@@ -1132,6 +1132,7 @@ send_update(struct interface *ifp, int urgent,
}
}
}
}
set_timeout
(
&
ifp
->
update_timeout
,
ifp
->
update_interval
);
set_timeout
(
&
ifp
->
update_timeout
,
ifp
->
update_interval
);
ifp
->
last_update_time
=
now
.
tv_sec
;
}
}
schedule_update_flush
(
ifp
,
urgent
);
schedule_update_flush
(
ifp
,
urgent
);
}
}
...
...
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