Skip to content

Commit aedafe5

Browse files
authored
Merge pull request #6659 from BOINC/dpa_wsl9
client (Win): include boinc-buda-runner version in sched request
2 parents 17332d6 + aa9f407 commit aedafe5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/wslinfo.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ void WSL_DISTRO::write_xml(MIOFILE& f) {
5252
v,
5353
wsl_version
5454
);
55+
if (boinc_buda_runner_version) {
56+
f.printf(
57+
" <distro_version>%d</distro_version>\n",
58+
boinc_buda_runner_version
59+
);
60+
}
5561
if (is_default) {
5662
f.printf(
5763
" <is_default/>\n"
@@ -97,6 +103,7 @@ int WSL_DISTRO::parse(XML_PARSER& xp) {
97103
return 0;
98104
}
99105
if (xp.parse_string("distro_name", distro_name)) continue;
106+
if (xp.parse_int("distro_version", boinc_buda_runner_version)) continue;
100107
if (xp.parse_string("os_name", os_name)) continue;
101108
if (xp.parse_string("os_version", os_version)) continue;
102109
if (xp.parse_string("libc_version", libc_version)) continue;

0 commit comments

Comments
 (0)