projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
65d6f02
5140656
)
Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 25 Feb 2012 21:52:57 +0000
(22:52 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 25 Feb 2012 21:52:57 +0000
(22:52 +0100)
1
2
src/route.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
src/route.c
index
32be4de
,
666f48f
..
c73ac9f
---
1
/
src/route.c
---
2
/
src/route.c
+++ b/
src/route.c
@@@
-85,10
-80,9
+85,10
@@@
static uint16_t inet_checksum(void *dat
static bool ratelimit(int frequency) {
static time_t lasttime = 0;
static int count = 0;
+ time_t now = time(NULL);
if(lasttime == now) {
- if(
++count >
frequency)
+ if(
count >=
frequency)
return true;
} else {
lasttime = now;