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

Description: Unnamed repository; edit this file to name it for gitweb.
Last Change: Wed 2/3/10 13:04

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Wed 2/3/10 13:04
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:38
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 12:27
Michael Larabel  
phoromatic: Add... 
Wed 2/3/10 9:26
Michael Larabel  
pts: Drop MD5 hashes in... 
Tue 2/2/10 23:43
Michael Larabel  
phoromatic: Add... 
Tue 2/2/10 23:35
Michael Larabel  
pts-core: Phoromatic... 
 
> --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