Searched refs:bwend (Results 1 – 3 of 3) sorted by relevance
/external/openssh/ |
D | misc.c | 866 timerclear(&bw->bwend); in bandwidth_limit_init() 885 gettimeofday(&bw->bwend, NULL); in bandwidth_limit() 886 timersub(&bw->bwend, &bw->bwstart, &bw->bwend); in bandwidth_limit() 887 if (!timerisset(&bw->bwend)) in bandwidth_limit() 896 if (timercmp(&bw->bwstart, &bw->bwend, >)) { in bandwidth_limit() 897 timersub(&bw->bwstart, &bw->bwend, &bw->bwend); in bandwidth_limit() 900 if (bw->bwend.tv_sec) { in bandwidth_limit() 904 } else if (bw->bwend.tv_usec < 10000) { in bandwidth_limit() 910 TIMEVAL_TO_TIMESPEC(&bw->bwend, &ts); in bandwidth_limit()
|
D | misc.h | 85 struct timeval bwstart, bwend; member
|
/external/dropbear/ |
D | scp.c | 769 static struct timeval bwstart, bwend; in bwlimit() local 783 gettimeofday(&bwend, NULL); in bwlimit() 784 timersub(&bwend, &bwstart, &bwend); in bwlimit() 785 if (!timerisset(&bwend)) in bwlimit() 794 if (timercmp(&bwstart, &bwend, >)) { in bwlimit() 795 timersub(&bwstart, &bwend, &bwend); in bwlimit() 798 if (bwend.tv_sec) { in bwlimit() 802 } else if (bwend.tv_usec < 100) { in bwlimit() 808 TIMEVAL_TO_TIMESPEC(&bwend, &ts); in bwlimit()
|