Skip to content

Commit 9d6cd11

Browse files
authored
Merge pull request #775 from hashtopolis/bug/agent_devcontainer
Detecting Microsoft GPU correctly and making voucher persist in devcontainer
2 parents 808ee25 + 5fe06f8 commit 9d6cd11

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.devcontainer/adduser.php

+1
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@
4444

4545
// Create voucher for dev agent
4646
AgentUtils::createVoucher("devvoucher");
47+
ConfigUtils::updateConfig(array("config_voucherDeletion" => "1"));

src/inc/api/APIUpdateClientInformation.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function execute($QUERY = array()) {
1919
$cpuOnly = 1;
2020
foreach ($devices as $device) {
2121
$device = strtolower($device);
22-
if ((strpos($device, "amd") !== false) || (strpos($device, "ati ") !== false) || (strpos($device, "radeon") !== false) || strpos($device, "nvidia") !== false || strpos($device, "gtx") !== false || strpos($device, "ti") !== false) {
22+
if ((strpos($device, "amd") !== false) || (strpos($device, "ati ") !== false) || (strpos($device, "radeon") !== false) || strpos($device, "nvidia") !== false || strpos($device, "gtx") !== false || strpos($device, "ti") !== false|| strpos($device, "microsoft") != false) {
2323
$cpuOnly = 0;
2424
}
2525
}

0 commit comments

Comments
 (0)