summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-06-05 06:11:44 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-06-05 06:11:44 -0400
commitb37d6a9a95fe614f71f8efb936714ddfb6d697b1 (patch)
treee50863c7855c36a4469759ab75225123610bf445 /pts-core/functions/pts-functions_system.php
parentcf2b8cae69e3c454c062a359c19a412e707d38c5 (diff)
downloadphoronix-test-suite-upstream-b37d6a9a95fe614f71f8efb936714ddfb6d697b1.tar.gz
phoronix-test-suite-upstream-b37d6a9a95fe614f71f8efb936714ddfb6d697b1.tar.xz
phoronix-test-suite-upstream-b37d6a9a95fe614f71f8efb936714ddfb6d697b1.zip
Add VirtualBox detection support
Diffstat (limited to 'pts-core/functions/pts-functions_system.php')
-rw-r--r--pts-core/functions/pts-functions_system.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system.php b/pts-core/functions/pts-functions_system.php
index d5fe255..26b72b3 100644
--- a/pts-core/functions/pts-functions_system.php
+++ b/pts-core/functions/pts-functions_system.php
@@ -307,11 +307,14 @@ function pts_report_power_mode()
function pts_report_virtualized_mode()
{
$virtualized = "";
+ $gpu = graphics_processor_string();
if(strpos(processor_string(), "QEMU") !== FALSE)
$virtualized = "QEMU";
- else if(strpos(graphics_processor_string(), "VMware") !== FALSE)
+ else if(strpos($gpu, "VMware") !== FALSE)
$virtualized = "VMware";
+ else if(strpos($gpu, "VirtualBox") !== FALSE)
+ $virtualized = "VirtualBox";
if(!empty($virtualized))
$virtualized = "This system is using " . $virtualized . " virtualization.";