Skip to content

Commit

Permalink
Merge pull request #775 from hashtopolis/bug/agent_devcontainer
Browse files Browse the repository at this point in the history
Detecting Microsoft GPU correctly and making voucher persist in devcontainer
  • Loading branch information
s3inlc committed Jun 5, 2022
2 parents 808ee25 + 5fe06f8 commit 9d6cd11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .devcontainer/adduser.php
Expand Up @@ -44,3 +44,4 @@

// Create voucher for dev agent
AgentUtils::createVoucher("devvoucher");
ConfigUtils::updateConfig(array("config_voucherDeletion" => "1"));
2 changes: 1 addition & 1 deletion src/inc/api/APIUpdateClientInformation.class.php
Expand Up @@ -19,7 +19,7 @@ public function execute($QUERY = array()) {
$cpuOnly = 1;
foreach ($devices as $device) {
$device = strtolower($device);
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) {
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) {
$cpuOnly = 0;
}
}
Expand Down

0 comments on commit 9d6cd11

Please sign in to comment.