Summary
Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04
Recent Commits
>
--git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index 5cd20b0..f958d91 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -275,7 +275,7 @@ function pts_hw_string()
}
function pts_sw_string()
{
- $sw_string = "OS: " . operating_system_release() . ", ";
+ $sw_string = "OS: " . operating_system_release() . " (" . kernel_arch() . "), ";
$sw_string .= "Kernel: " . kernel_string() . " (" . kernel_arch() . "), ";
$sw_string .= "X.Org Server: " . graphics_subsystem_version() . ", ";
$sw_string .= "OpenGL: " . opengl_version() . ", ";
@@ -330,10 +330,6 @@ function pts_global_upload_result($result_file)
return file_get_contents("http://www.phoronix-test-suite.com/global/user-upload.php?result_xml=$ToUpload&global_user=$GlobalUser&global_key=$Globalkey"); // Rudimentary, but works
}
-function operating_system_release()
-{
- return os_vendor() . " " . os_version();
-}
function pts_trim_double($double, $accuracy = 2)
{
// this function is to avoid using bcmath
diff --git a/pts-core/functions/pts-functions_linux.php b/pts-core/functions/pts-functions_linux.php
index 7ade688..898a2af 100644
--- a/pts-core/functions/pts-functions_linux.php
+++ b/pts-core/functions/pts-functions_linux.php
@@ -256,6 +256,18 @@ function compiler_version()
return $info;
}
+function operating_system_release()
+{
+ $vendor = os_vendor();
+ $version = os_version();
+
+ if($vendor == "Unknown" && $version == "Unknown")
+ $os = "Unknown";
+ else
+ $os = $vendor . " " . $version;
+
+ return $os;
+}
function opengl_version()
{
$info = shell_exec("glxinfo | grep version");
<
Copyright © 2010 by Phoronix Media