timesync: do less aggressive clock sampling (issue #73)
This commit is contained in:
parent
9f65da6d70
commit
982ee70f45
1 changed files with 1 additions and 0 deletions
|
@ -1273,6 +1273,7 @@ sample(long (*get)(void))
|
||||||
last = (*get)();
|
last = (*get)();
|
||||||
for(;;){
|
for(;;){
|
||||||
gettime(&start, 0, 0);
|
gettime(&start, 0, 0);
|
||||||
|
sleep(5);
|
||||||
this = (*get)();
|
this = (*get)();
|
||||||
gettime(&end, 0, 0);
|
gettime(&end, 0, 0);
|
||||||
if(this != last)
|
if(this != last)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue