Searched refs:bwstart (Results 1 – 3 of 3) sorted by relevance
/external/openssh/ |
D | misc.c | 865 timerclear(&bw->bwstart); in bandwidth_limit_init() 876 if (!timerisset(&bw->bwstart)) { in bandwidth_limit() 877 gettimeofday(&bw->bwstart, NULL); in bandwidth_limit() 886 timersub(&bw->bwend, &bw->bwstart, &bw->bwend); in bandwidth_limit() 893 bw->bwstart.tv_sec = waitlen / 1000000L; in bandwidth_limit() 894 bw->bwstart.tv_usec = waitlen % 1000000L; in bandwidth_limit() 896 if (timercmp(&bw->bwstart, &bw->bwend, >)) { in bandwidth_limit() 897 timersub(&bw->bwstart, &bw->bwend, &bw->bwend); in bandwidth_limit() 919 gettimeofday(&bw->bwstart, NULL); 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 774 if (!timerisset(&bwstart)) { in bwlimit() 775 gettimeofday(&bwstart, NULL); in bwlimit() 784 timersub(&bwend, &bwstart, &bwend); in bwlimit() 791 bwstart.tv_sec = waitlen / 1000000L; in bwlimit() 792 bwstart.tv_usec = waitlen % 1000000L; in bwlimit() 794 if (timercmp(&bwstart, &bwend, >)) { in bwlimit() 795 timersub(&bwstart, &bwend, &bwend); in bwlimit() 817 gettimeofday(&bwstart, NULL); in bwlimit()
|