Skip to content

Commit 4857534

Browse files
authored
donate-cpu-server.py: Ignore results from client version 1.3.63. It is broken. [ci skip] (#6924)
1 parent 0577925 commit 4857534

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/donate-cpu-server.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/
2727
# Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
2828
# changes)
29-
SERVER_VERSION = "1.3.60"
29+
SERVER_VERSION = "1.3.61"
3030

3131
OLD_VERSION = '2.15.0'
3232

@@ -1445,6 +1445,9 @@ def server(server_address_port: int, packages: list, packageIndex: int, resultPa
14451445
if old_version_wrong:
14461446
print_ts('Unexpected old version. Ignoring result data.')
14471447
continue
1448+
if '\nclient-version: 1.3.63\n' in data:
1449+
print_ts('Client version 1.3.63 detected. Ignoring result data.')
1450+
continue
14481451
filename = os.path.join(resultPath, res.group(1))
14491452
if truncated_data:
14501453
print_ts('Data is too large. Removing result.')
@@ -1476,6 +1479,9 @@ def server(server_address_port: int, packages: list, packageIndex: int, resultPa
14761479
if pos < 10:
14771480
print_ts('Data is less than 10 characters. Ignoring information data.')
14781481
continue
1482+
if '\nclient-version: 1.3.63\n' in data:
1483+
print_ts('Client version 1.3.63 detected. Ignoring information data.')
1484+
continue
14791485
url = data[:pos]
14801486
print_ts('write_info:' + url)
14811487

0 commit comments

Comments
 (0)