diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-11-12 10:59:41 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-11-12 10:59:41 +0000 |
commit | 0475d17e1ce34e6b2471d17a102b7c2a2d1427c7 (patch) | |
tree | 33e9d066a65da9025ecabd2f42f1612c1fd11e7d /shaper.h | |
parent | Fixed minor typos in --remote-cert-* documentation. (diff) | |
download | openvpn-0475d17e1ce34e6b2471d17a102b7c2a2d1427c7.tar.xz |
Reduce sensitivity to system clock instability
and backtracks.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@799 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'shaper.h')
-rw-r--r-- | shaper.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -109,7 +109,7 @@ shaper_delay (struct shaper* s) if (tv_defined (&s->wakeup)) { - ASSERT (!gettimeofday (&tv, NULL)); + ASSERT (!openvpn_gettimeofday (&tv, NULL)); delay = tv_subtract (&s->wakeup, &tv, SHAPER_MAX_TIMEOUT); #ifdef SHAPER_DEBUG dmsg (D_SHAPER_DEBUG, "SHAPER shaper_delay delay=%d", delay); @@ -143,7 +143,7 @@ shaper_wrote_bytes (struct shaper* s, int nbytes) if (tv.tv_usec) { - ASSERT (!gettimeofday (&s->wakeup, NULL)); + ASSERT (!openvpn_gettimeofday (&s->wakeup, NULL)); tv_add (&s->wakeup, &tv); #ifdef SHAPER_DEBUG |