projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Mon 8/30/10 20:43

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Mon 8/30/10 20:43
Michael Larabel  
 
Mon 8/30/10 20:37
Michael Larabel  
pts-core: Last minute... 
Sat 8/28/10 12:53
Michael Larabel  
pts-core: Detect if a... 
Sat 8/28/10 10:34
Michael Larabel  
pts-core: Fix test result... 
Fri 8/27/10 8:51
Michael Larabel  
pts-core: When doing a... 
Wed 8/25/10 18:46
Michael Larabel  
 
 
> --git a/CHANGE-LOG b/CHANGE-LOG
index 6a05c00
..488dce9 100644
--- a/CHANGE-LOG
+++ b/CHANGE-LOG
@@ -3,+3,@@ PHORONIX TEST SUITE CHANGE-LOG
 Phoronix Test Suite 
(git)

 - 
Add SPECViewPerf 9 profile
+- Add "Total Disk Space" reporting to PTS hardware information
 
Add IOzone profile
 
Pts-Grapher updates
 
Other fixes
diff 
--git a/pts-core/functions/pts-functions.php b/pts-core/functions/pts-functions.php
index 6451215..74fb542 100644
--- a/pts-core/functions/pts-functions.php
+++ b/pts-core/functions/pts-functions.php
@@ -275,+275,@@ function pts_hw_string()
     
$hw_string "Processor: " processor_string() . " (Total Cores: " cpu_core_count() . "), ";
     
$hw_string .= "Motherboard Chipset: " motherboard_chipset_string() . ", ";
     
$hw_string .= "System Memory: " memory_mb_capacity() . "MB, ";
+    
$hw_string .= "Total Disk Space: " pts_posix_disk_total() . "GB, ";
     
$hw_string .= "Graphics: " graphics_processor_string() . ", ";
     
$hw_string .= "Screen Resolution: " current_screen_resolution() . " ";

diff --git a/pts-core/functions/pts-functions_linux.php b/pts-core/functions/pts-functions_linux.php
index 6b5385b
..e5b9254 100644
--- a/pts-core/functions/pts-functions_linux.php
+++ b/pts-core/functions/pts-functions_linux.php
@@ -15,+15,10 @@ function pts_posix_userhome()
     
$userinfo posix_getpwuid(posix_getuid());
     return 
$userinfo["dir"] . '/';
 }
+function 
pts_posix_disk_total()
+{
+    return 
ceil(disk_total_space("/") / 1073741824);
+}
 function 
cpu_core_count()
 {
     if(
is_file("/proc/cpuinfo"))
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2010 by Phoronix Media