только админу дается возможность использовать больше 14 ядер
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package Common.Utils;
|
||||
import Common.Constants;
|
||||
import Common.Current;
|
||||
import Common.Global;
|
||||
import Common.UI.UI;
|
||||
import ProjectData.Files.DBProjectFile;
|
||||
@@ -1039,5 +1040,11 @@ public class Utils {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static int getTestingMaxKernels() {
|
||||
if (Current.HasAccount()) {
|
||||
return (Current.getAccount().isAdmin()) ? 64 : 14;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user