mirror of https://github.com/BOINC/boinc.git
- scheduler: zero host.nsame_ip_addr if IP addr differs from previous
svn path=/trunk/boinc/; revision=25500
This commit is contained in:
parent
39f5dc7e58
commit
7f3b3584d0
|
@ -3107,3 +3107,9 @@ David 27 Mar 2012
|
|||
parse.cpp
|
||||
client/
|
||||
app_control.cpp
|
||||
|
||||
David 27 Mar 2012
|
||||
- scheduler: zero host.nsame_ip_addr if IP addr differs from previous
|
||||
|
||||
sched/
|
||||
handle_request.cpp
|
||||
|
|
|
@ -506,7 +506,11 @@ static int modify_host_struct(HOST& host) {
|
|||
strlcat(host.serialnum, buf2, sizeof(host.serialnum));
|
||||
}
|
||||
if (strcmp(host.last_ip_addr, g_request->host.last_ip_addr)) {
|
||||
strncpy(host.last_ip_addr, g_request->host.last_ip_addr, sizeof(host.last_ip_addr));
|
||||
strncpy(
|
||||
host.last_ip_addr, g_request->host.last_ip_addr,
|
||||
sizeof(host.last_ip_addr)
|
||||
);
|
||||
host.nsame_ip_addr = 0;
|
||||
} else {
|
||||
host.nsame_ip_addr++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue