mirror of https://github.com/BOINC/boinc.git
- scheduler: put client version in host.serialnum
- web: parse serialnum correctly svn path=/trunk/boinc/; revision=18986
This commit is contained in:
parent
054fbf6200
commit
dd2bb6d4ba
|
@ -7440,3 +7440,12 @@ Charlie 1 Sept 2009
|
|||
Mac_SA_Secure.sh
|
||||
mac_installer/
|
||||
PostInstall.cpp
|
||||
|
||||
David 2 Sept 2009
|
||||
- scheduler: put client version in host.serialnum
|
||||
- web: parse serialnum correctly
|
||||
|
||||
html/inc/
|
||||
host.inc
|
||||
sched/
|
||||
handle_request.cpp
|
||||
|
|
|
@ -230,10 +230,15 @@ function host_nresults($host) {
|
|||
return BoincResult::count("hostid=$host->id");
|
||||
}
|
||||
|
||||
// format a GPU description string of the form [type|model|number|RAM]
|
||||
// format a GPU description string of the form [BOINC|vers][type|model|number|RAM]
|
||||
//
|
||||
function gpu_desc($x) {
|
||||
if (!$x) return "";
|
||||
// skip BOINC part
|
||||
$y = strstr($x, 'BOINC');
|
||||
if ($y) {
|
||||
$x = strstr($y, "[");
|
||||
}
|
||||
$x = substr($x, 1, -1);
|
||||
$y = explode("|", $x);
|
||||
$z = "";
|
||||
|
|
|
@ -490,7 +490,15 @@ got_host:
|
|||
static int modify_host_struct(HOST& host) {
|
||||
host.timezone = g_request->host.timezone;
|
||||
strncpy(host.domain_name, g_request->host.domain_name, sizeof(host.domain_name));
|
||||
g_request->coprocs.summary_string(host.serialnum, sizeof(host.serialnum));
|
||||
char buf[256], buf2[256];
|
||||
sprintf(buf, "[BOINC|%d.%d.%d]",
|
||||
g_request->core_client_major_version,
|
||||
g_request->core_client_minor_version,
|
||||
g_request->core_client_release
|
||||
);
|
||||
g_request->coprocs.summary_string(buf2, sizeof(buf2));
|
||||
strlcpy(host.serialnum, buf, sizeof(host.serialnum));
|
||||
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));
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue