mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WL#4189 Set parallel to 1 if running under vmware on windows
This commit is contained in:
@ -126,6 +126,15 @@ sub new {
|
||||
\&_unamex,
|
||||
);
|
||||
|
||||
# Detect virtual machines
|
||||
my $isvm= 0;
|
||||
|
||||
if (IS_WINDOWS) {
|
||||
# Detect vmware service
|
||||
$isvm= `tasklist` =~ /vmwareservice/i;
|
||||
}
|
||||
$self->{isvm}= $isvm;
|
||||
|
||||
foreach my $method (@info_methods){
|
||||
if ($method->($self)){
|
||||
return $self;
|
||||
@ -174,6 +183,12 @@ sub min_bogomips {
|
||||
return $bogomips;
|
||||
}
|
||||
|
||||
sub isvm {
|
||||
my ($self)= @_;
|
||||
|
||||
return $self->{isvm};
|
||||
}
|
||||
|
||||
|
||||
# Prit the cpuinfo
|
||||
sub print_info {
|
||||
|
Reference in New Issue
Block a user