igmpproxy
igmpproxy copied to clipboard
igmpproxy timer execute error
diff --git a/src/igmpproxy.c b/src/igmpproxy.c index 9d1172b..46a659b 100644 --- a/src/igmpproxy.c +++ b/src/igmpproxy.c @@ -297,7 +297,7 @@ void igmpProxyRun(void) { timeout = NULL; } else { timeout->tv_nsec = 0; - timeout->tv_sec = (secs > 3) ? 3 : secs; // aimwang: set max timeout + timeout->tv_sec = secs = (secs > 3) ? 3 : secs; // aimwang: set max timeout }
// Prepare for select.
it cause a problem at :
// At this point, we can handle timeouts...
do {
/*
* If the select timed out, then there's no other
* activity to account for and we don't need to
* call gettimeofday.
*/
if (Rt == 0) {
curtime.tv_sec = lasttime.tv_sec + secs;
curtime.tv_nsec = lasttime.tv_nsec;
Rt = -1; /* don't do this next time through the loop */
} else {
clock_gettime(CLOCK_MONOTONIC, &curtime);
}
difftime.tv_sec = curtime.tv_sec - lasttime.tv_sec;
difftime.tv_nsec += curtime.tv_nsec - lasttime.tv_nsec;
while (difftime.tv_nsec > 1000000000) {
difftime.tv_sec++;
difftime.tv_nsec -= 1000000000;
}
if (difftime.tv_nsec < 0) {
difftime.tv_sec--;
difftime.tv_nsec += 1000000000;
}
lasttime = curtime;
if (secs == 0 || difftime.tv_sec > 0)
age_callout_queue(difftime.tv_sec);
secs = -1;
} while (difftime.tv_sec > 0);
I want to push a commit for it , but I don't how to do . it likes this:
onesecret@onesecret-Vostro-3470:~/igmpproxy$ git push origin HEAD:refs/for/master Username for 'https://github.com': onesecret Password for 'https://[email protected]': remote: Permission to pali/igmpproxy.git denied to onesecret. fatal: unable to access 'https://github.com/pali/igmpproxy.git/': The requested URL returned error: 403
can I push a commit ? It looks like I have no permission.
Hello! You first need to create your own fork of this repository, then push changes inyo your own fork and later create a pull request for including changes of your fork into main igmpproxy repository agin. See official help guidelines with screenshots from github how to fork repository and how to create a pull requests, this should help you: https://help.github.com/en/github/getting-started-with-github/fork-a-repo https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork Also you should be able to edit file directly on github and changes would be saved to your personal fork (after that is needed to create a pull request).
Thank you, I'll try it